stochaskell-0.1.0: A probabilistic programming language

Copyright(c) David A Roberts 2015-2019
LicenseGPL-3
Maintainerd@vidr.cc
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Language.Stochaskell.Plot

Contents

Description

 
Synopsis

Documentation

class ToPNG a where #

Minimal complete definition

toPNG

Methods

toPNG :: String -> a -> IO () #

Instances
ToPNG (Renderable a) # 
Instance details

Defined in Language.Stochaskell.Plot

Methods

toPNG :: String -> Renderable a -> IO () #

ToPNG (QDiagram Cairo V2 Double Any) # 
Instance details

Defined in Language.Stochaskell.Plot

Methods

toPNG :: String -> QDiagram Cairo V2 Double Any -> IO () #

renderAxis2 :: State (Axis Cairo V2 Double) () -> QDiagram Cairo V2 Double Any #

Re-exports

Graphics.Rendering.Chart.Easy

class (Functor t, Foldable t) => Traversable (t :: * -> *) where #

Functors representing data structures that can be traversed from left to right.

A definition of traverse must satisfy the following laws:

naturality
t . traverse f = traverse (t . f) for every applicative transformation t
identity
traverse Identity = Identity
composition
traverse (Compose . fmap g . f) = Compose . fmap (traverse g) . traverse f

A definition of sequenceA must satisfy the following laws:

naturality
t . sequenceA = sequenceA . fmap t for every applicative transformation t
identity
sequenceA . fmap Identity = Identity
composition
sequenceA . fmap Compose = Compose . fmap sequenceA . sequenceA

where an applicative transformation is a function

t :: (Applicative f, Applicative g) => f a -> g a

preserving the Applicative operations, i.e.

and the identity functor Identity and composition of functors Compose are defined as

  newtype Identity a = Identity a

  instance Functor Identity where
    fmap f (Identity x) = Identity (f x)

  instance Applicative Identity where
    pure x = Identity x
    Identity f <*> Identity x = Identity (f x)

  newtype Compose f g a = Compose (f (g a))

  instance (Functor f, Functor g) => Functor (Compose f g) where
    fmap f (Compose x) = Compose (fmap (fmap f) x)

  instance (Applicative f, Applicative g) => Applicative (Compose f g) where
    pure x = Compose (pure (pure x))
    Compose f <*> Compose x = Compose ((<*>) <$> f <*> x)

(The naturality law is implied by parametricity.)

Instances are similar to Functor, e.g. given a data type

data Tree a = Empty | Leaf a | Node (Tree a) a (Tree a)

a suitable instance would be

instance Traversable Tree where
   traverse f Empty = pure Empty
   traverse f (Leaf x) = Leaf <$> f x
   traverse f (Node l k r) = Node <$> traverse f l <*> f k <*> traverse f r

This is suitable even for abstract types, as the laws for <*> imply a form of associativity.

The superclass instances should satisfy the following:

Minimal complete definition

traverse | sequenceA

Methods

traverse :: Applicative f => (a -> f b) -> t a -> f (t b) #

Map each element of a structure to an action, evaluate these actions from left to right, and collect the results. For a version that ignores the results see traverse_.

Instances
Traversable []

Since: base-2.1

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> [a] -> f [b] #

sequenceA :: Applicative f => [f a] -> f [a] #

mapM :: Monad m => (a -> m b) -> [a] -> m [b] #

sequence :: Monad m => [m a] -> m [a] #

Traversable Maybe

Since: base-2.1

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> Maybe a -> f (Maybe b) #

sequenceA :: Applicative f => Maybe (f a) -> f (Maybe a) #

mapM :: Monad m => (a -> m b) -> Maybe a -> m (Maybe b) #

sequence :: Monad m => Maybe (m a) -> m (Maybe a) #

Traversable Par1 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> Par1 a -> f (Par1 b) #

sequenceA :: Applicative f => Par1 (f a) -> f (Par1 a) #

mapM :: Monad m => (a -> m b) -> Par1 a -> m (Par1 b) #

sequence :: Monad m => Par1 (m a) -> m (Par1 a) #

Traversable Identity 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> Identity a -> f (Identity b) #

sequenceA :: Applicative f => Identity (f a) -> f (Identity a) #

mapM :: Monad m => (a -> m b) -> Identity a -> m (Identity b) #

sequence :: Monad m => Identity (m a) -> m (Identity a) #

Traversable Complex 
Instance details

Defined in Data.Complex

Methods

traverse :: Applicative f => (a -> f b) -> Complex a -> f (Complex b) #

sequenceA :: Applicative f => Complex (f a) -> f (Complex a) #

mapM :: Monad m => (a -> m b) -> Complex a -> m (Complex b) #

sequence :: Monad m => Complex (m a) -> m (Complex a) #

Traversable Min

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Methods

traverse :: Applicative f => (a -> f b) -> Min a -> f (Min b) #

sequenceA :: Applicative f => Min (f a) -> f (Min a) #

mapM :: Monad m => (a -> m b) -> Min a -> m (Min b) #

sequence :: Monad m => Min (m a) -> m (Min a) #

Traversable Max

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Methods

traverse :: Applicative f => (a -> f b) -> Max a -> f (Max b) #

sequenceA :: Applicative f => Max (f a) -> f (Max a) #

mapM :: Monad m => (a -> m b) -> Max a -> m (Max b) #

sequence :: Monad m => Max (m a) -> m (Max a) #

Traversable First

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Methods

traverse :: Applicative f => (a -> f b) -> First a -> f (First b) #

sequenceA :: Applicative f => First (f a) -> f (First a) #

mapM :: Monad m => (a -> m b) -> First a -> m (First b) #

sequence :: Monad m => First (m a) -> m (First a) #

Traversable Last

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Methods

traverse :: Applicative f => (a -> f b) -> Last a -> f (Last b) #

sequenceA :: Applicative f => Last (f a) -> f (Last a) #

mapM :: Monad m => (a -> m b) -> Last a -> m (Last b) #

sequence :: Monad m => Last (m a) -> m (Last a) #

Traversable Option

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Methods

traverse :: Applicative f => (a -> f b) -> Option a -> f (Option b) #

sequenceA :: Applicative f => Option (f a) -> f (Option a) #

mapM :: Monad m => (a -> m b) -> Option a -> m (Option b) #

sequence :: Monad m => Option (m a) -> m (Option a) #

Traversable ZipList

Since: base-4.9.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> ZipList a -> f (ZipList b) #

sequenceA :: Applicative f => ZipList (f a) -> f (ZipList a) #

mapM :: Monad m => (a -> m b) -> ZipList a -> m (ZipList b) #

sequence :: Monad m => ZipList (m a) -> m (ZipList a) #

Traversable First

Since: base-4.8.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> First a -> f (First b) #

sequenceA :: Applicative f => First (f a) -> f (First a) #

mapM :: Monad m => (a -> m b) -> First a -> m (First b) #

sequence :: Monad m => First (m a) -> m (First a) #

Traversable Last

Since: base-4.8.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> Last a -> f (Last b) #

sequenceA :: Applicative f => Last (f a) -> f (Last a) #

mapM :: Monad m => (a -> m b) -> Last a -> m (Last b) #

sequence :: Monad m => Last (m a) -> m (Last a) #

Traversable Dual

Since: base-4.8.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> Dual a -> f (Dual b) #

sequenceA :: Applicative f => Dual (f a) -> f (Dual a) #

mapM :: Monad m => (a -> m b) -> Dual a -> m (Dual b) #

sequence :: Monad m => Dual (m a) -> m (Dual a) #

Traversable Sum

Since: base-4.8.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> Sum a -> f (Sum b) #

sequenceA :: Applicative f => Sum (f a) -> f (Sum a) #

mapM :: Monad m => (a -> m b) -> Sum a -> m (Sum b) #

sequence :: Monad m => Sum (m a) -> m (Sum a) #

Traversable Product

Since: base-4.8.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> Product a -> f (Product b) #

sequenceA :: Applicative f => Product (f a) -> f (Product a) #

mapM :: Monad m => (a -> m b) -> Product a -> m (Product b) #

sequence :: Monad m => Product (m a) -> m (Product a) #

Traversable NonEmpty

Since: base-4.9.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> NonEmpty a -> f (NonEmpty b) #

sequenceA :: Applicative f => NonEmpty (f a) -> f (NonEmpty a) #

mapM :: Monad m => (a -> m b) -> NonEmpty a -> m (NonEmpty b) #

sequence :: Monad m => NonEmpty (m a) -> m (NonEmpty a) #

Traversable IntMap 
Instance details

Defined in Data.IntMap.Internal

Methods

traverse :: Applicative f => (a -> f b) -> IntMap a -> f (IntMap b) #

sequenceA :: Applicative f => IntMap (f a) -> f (IntMap a) #

mapM :: Monad m => (a -> m b) -> IntMap a -> m (IntMap b) #

sequence :: Monad m => IntMap (m a) -> m (IntMap a) #

Traversable Tree 
Instance details

Defined in Data.Tree

Methods

traverse :: Applicative f => (a -> f b) -> Tree a -> f (Tree b) #

sequenceA :: Applicative f => Tree (f a) -> f (Tree a) #

mapM :: Monad m => (a -> m b) -> Tree a -> m (Tree b) #

sequence :: Monad m => Tree (m a) -> m (Tree a) #

Traversable Seq 
Instance details

Defined in Data.Sequence.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Seq a -> f (Seq b) #

sequenceA :: Applicative f => Seq (f a) -> f (Seq a) #

mapM :: Monad m => (a -> m b) -> Seq a -> m (Seq b) #

sequence :: Monad m => Seq (m a) -> m (Seq a) #

Traversable FingerTree 
Instance details

Defined in Data.Sequence.Internal

Methods

traverse :: Applicative f => (a -> f b) -> FingerTree a -> f (FingerTree b) #

sequenceA :: Applicative f => FingerTree (f a) -> f (FingerTree a) #

mapM :: Monad m => (a -> m b) -> FingerTree a -> m (FingerTree b) #

sequence :: Monad m => FingerTree (m a) -> m (FingerTree a) #

Traversable Digit 
Instance details

Defined in Data.Sequence.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Digit a -> f (Digit b) #

sequenceA :: Applicative f => Digit (f a) -> f (Digit a) #

mapM :: Monad m => (a -> m b) -> Digit a -> m (Digit b) #

sequence :: Monad m => Digit (m a) -> m (Digit a) #

Traversable Node 
Instance details

Defined in Data.Sequence.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Node a -> f (Node b) #

sequenceA :: Applicative f => Node (f a) -> f (Node a) #

mapM :: Monad m => (a -> m b) -> Node a -> m (Node b) #

sequence :: Monad m => Node (m a) -> m (Node a) #

Traversable Elem 
Instance details

Defined in Data.Sequence.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Elem a -> f (Elem b) #

sequenceA :: Applicative f => Elem (f a) -> f (Elem a) #

mapM :: Monad m => (a -> m b) -> Elem a -> m (Elem b) #

sequence :: Monad m => Elem (m a) -> m (Elem a) #

Traversable ViewL 
Instance details

Defined in Data.Sequence.Internal

Methods

traverse :: Applicative f => (a -> f b) -> ViewL a -> f (ViewL b) #

sequenceA :: Applicative f => ViewL (f a) -> f (ViewL a) #

mapM :: Monad m => (a -> m b) -> ViewL a -> m (ViewL b) #

sequence :: Monad m => ViewL (m a) -> m (ViewL a) #

Traversable ViewR 
Instance details

Defined in Data.Sequence.Internal

Methods

traverse :: Applicative f => (a -> f b) -> ViewR a -> f (ViewR b) #

sequenceA :: Applicative f => ViewR (f a) -> f (ViewR a) #

mapM :: Monad m => (a -> m b) -> ViewR a -> m (ViewR b) #

sequence :: Monad m => ViewR (m a) -> m (ViewR a) #

Traversable V3 
Instance details

Defined in Linear.V3

Methods

traverse :: Applicative f => (a -> f b) -> V3 a -> f (V3 b) #

sequenceA :: Applicative f => V3 (f a) -> f (V3 a) #

mapM :: Monad m => (a -> m b) -> V3 a -> m (V3 b) #

sequence :: Monad m => V3 (m a) -> m (V3 a) #

Traversable V2 
Instance details

Defined in Linear.V2

Methods

traverse :: Applicative f => (a -> f b) -> V2 a -> f (V2 b) #

sequenceA :: Applicative f => V2 (f a) -> f (V2 a) #

mapM :: Monad m => (a -> m b) -> V2 a -> m (V2 b) #

sequence :: Monad m => V2 (m a) -> m (V2 a) #

Traversable Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

traverse :: Applicative f => (a -> f b) -> Polar a -> f (Polar b) #

sequenceA :: Applicative f => Polar (f a) -> f (Polar a) #

mapM :: Monad m => (a -> m b) -> Polar a -> m (Polar b) #

sequence :: Monad m => Polar (m a) -> m (Polar a) #

Traversable Array 
Instance details

Defined in Data.Primitive.Array

Methods

traverse :: Applicative f => (a -> f b) -> Array a -> f (Array b) #

sequenceA :: Applicative f => Array (f a) -> f (Array a) #

mapM :: Monad m => (a -> m b) -> Array a -> m (Array b) #

sequence :: Monad m => Array (m a) -> m (Array a) #

Traversable Vector 
Instance details

Defined in Data.Vector

Methods

traverse :: Applicative f => (a -> f b) -> Vector a -> f (Vector b) #

sequenceA :: Applicative f => Vector (f a) -> f (Vector a) #

mapM :: Monad m => (a -> m b) -> Vector a -> m (Vector b) #

sequence :: Monad m => Vector (m a) -> m (Vector a) #

Traversable Log 
Instance details

Defined in Numeric.Log

Methods

traverse :: Applicative f => (a -> f b) -> Log a -> f (Log b) #

sequenceA :: Applicative f => Log (f a) -> f (Log a) #

mapM :: Monad m => (a -> m b) -> Log a -> m (Log b) #

sequence :: Monad m => Log (m a) -> m (Log a) #

Traversable V1 
Instance details

Defined in Linear.V1

Methods

traverse :: Applicative f => (a -> f b) -> V1 a -> f (V1 b) #

sequenceA :: Applicative f => V1 (f a) -> f (V1 a) #

mapM :: Monad m => (a -> m b) -> V1 a -> m (V1 b) #

sequence :: Monad m => V1 (m a) -> m (V1 a) #

Traversable (Either a)

Since: base-4.7.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a0 -> f b) -> Either a a0 -> f (Either a b) #

sequenceA :: Applicative f => Either a (f a0) -> f (Either a a0) #

mapM :: Monad m => (a0 -> m b) -> Either a a0 -> m (Either a b) #

sequence :: Monad m => Either a (m a0) -> m (Either a a0) #

Traversable (V1 :: * -> *) 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> V1 a -> f (V1 b) #

sequenceA :: Applicative f => V1 (f a) -> f (V1 a) #

mapM :: Monad m => (a -> m b) -> V1 a -> m (V1 b) #

sequence :: Monad m => V1 (m a) -> m (V1 a) #

Traversable (U1 :: * -> *)

Since: base-4.9.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> U1 a -> f (U1 b) #

sequenceA :: Applicative f => U1 (f a) -> f (U1 a) #

mapM :: Monad m => (a -> m b) -> U1 a -> m (U1 b) #

sequence :: Monad m => U1 (m a) -> m (U1 a) #

Traversable ((,) a)

Since: base-4.7.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a0 -> f b) -> (a, a0) -> f (a, b) #

sequenceA :: Applicative f => (a, f a0) -> f (a, a0) #

mapM :: Monad m => (a0 -> m b) -> (a, a0) -> m (a, b) #

sequence :: Monad m => (a, m a0) -> m (a, a0) #

Traversable (Level i) 
Instance details

Defined in Control.Lens.Internal.Level

Methods

traverse :: Applicative f => (a -> f b) -> Level i a -> f (Level i b) #

sequenceA :: Applicative f => Level i (f a) -> f (Level i a) #

mapM :: Monad m => (a -> m b) -> Level i a -> m (Level i b) #

sequence :: Monad m => Level i (m a) -> m (Level i a) #

Traversable (Map k) 
Instance details

Defined in Data.Map.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Map k a -> f (Map k b) #

sequenceA :: Applicative f => Map k (f a) -> f (Map k a) #

mapM :: Monad m => (a -> m b) -> Map k a -> m (Map k b) #

sequence :: Monad m => Map k (m a) -> m (Map k a) #

Ix i => Traversable (Array i)

Since: base-2.1

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> Array i a -> f (Array i b) #

sequenceA :: Applicative f => Array i (f a) -> f (Array i a) #

mapM :: Monad m => (a -> m b) -> Array i a -> m (Array i b) #

sequence :: Monad m => Array i (m a) -> m (Array i a) #

Traversable (Arg a)

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Methods

traverse :: Applicative f => (a0 -> f b) -> Arg a a0 -> f (Arg a b) #

sequenceA :: Applicative f => Arg a (f a0) -> f (Arg a a0) #

mapM :: Monad m => (a0 -> m b) -> Arg a a0 -> m (Arg a b) #

sequence :: Monad m => Arg a (m a0) -> m (Arg a a0) #

Traversable (Proxy :: * -> *)

Since: base-4.7.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> Proxy a -> f (Proxy b) #

sequenceA :: Applicative f => Proxy (f a) -> f (Proxy a) #

mapM :: Monad m => (a -> m b) -> Proxy a -> m (Proxy b) #

sequence :: Monad m => Proxy (m a) -> m (Proxy a) #

Traversable f => Traversable (MaybeT f) 
Instance details

Defined in Control.Monad.Trans.Maybe

Methods

traverse :: Applicative f0 => (a -> f0 b) -> MaybeT f a -> f0 (MaybeT f b) #

sequenceA :: Applicative f0 => MaybeT f (f0 a) -> f0 (MaybeT f a) #

mapM :: Monad m => (a -> m b) -> MaybeT f a -> m (MaybeT f b) #

sequence :: Monad m => MaybeT f (m a) -> m (MaybeT f a) #

Traversable f => Traversable (ListT f) 
Instance details

Defined in Control.Monad.Trans.List

Methods

traverse :: Applicative f0 => (a -> f0 b) -> ListT f a -> f0 (ListT f b) #

sequenceA :: Applicative f0 => ListT f (f0 a) -> f0 (ListT f a) #

mapM :: Monad m => (a -> m b) -> ListT f a -> m (ListT f b) #

sequence :: Monad m => ListT f (m a) -> m (ListT f a) #

Traversable f => Traversable (Point f) 
Instance details

Defined in Linear.Affine

Methods

traverse :: Applicative f0 => (a -> f0 b) -> Point f a -> f0 (Point f b) #

sequenceA :: Applicative f0 => Point f (f0 a) -> f0 (Point f a) #

mapM :: Monad m => (a -> m b) -> Point f a -> m (Point f b) #

sequence :: Monad m => Point f (m a) -> m (Point f a) #

Traversable (Categorical p) 
Instance details

Defined in Data.Random.Distribution.Categorical

Methods

traverse :: Applicative f => (a -> f b) -> Categorical p a -> f (Categorical p b) #

sequenceA :: Applicative f => Categorical p (f a) -> f (Categorical p a) #

mapM :: Monad m => (a -> m b) -> Categorical p a -> m (Categorical p b) #

sequence :: Monad m => Categorical p (m a) -> m (Categorical p a) #

Traversable (HashMap k) 
Instance details

Defined in Data.HashMap.Base

Methods

traverse :: Applicative f => (a -> f b) -> HashMap k a -> f (HashMap k b) #

sequenceA :: Applicative f => HashMap k (f a) -> f (HashMap k a) #

mapM :: Monad m => (a -> m b) -> HashMap k a -> m (HashMap k b) #

sequence :: Monad m => HashMap k (m a) -> m (HashMap k a) #

Traversable f => Traversable (Yoneda f) 
Instance details

Defined in Data.Functor.Yoneda

Methods

traverse :: Applicative f0 => (a -> f0 b) -> Yoneda f a -> f0 (Yoneda f b) #

sequenceA :: Applicative f0 => Yoneda f (f0 a) -> f0 (Yoneda f a) #

mapM :: Monad m => (a -> m b) -> Yoneda f a -> m (Yoneda f b) #

sequence :: Monad m => Yoneda f (m a) -> m (Yoneda f a) #

Traversable f => Traversable (Rec1 f) 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f0 => (a -> f0 b) -> Rec1 f a -> f0 (Rec1 f b) #

sequenceA :: Applicative f0 => Rec1 f (f0 a) -> f0 (Rec1 f a) #

mapM :: Monad m => (a -> m b) -> Rec1 f a -> m (Rec1 f b) #

sequence :: Monad m => Rec1 f (m a) -> m (Rec1 f a) #

Traversable (URec Char :: * -> *) 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> URec Char a -> f (URec Char b) #

sequenceA :: Applicative f => URec Char (f a) -> f (URec Char a) #

mapM :: Monad m => (a -> m b) -> URec Char a -> m (URec Char b) #

sequence :: Monad m => URec Char (m a) -> m (URec Char a) #

Traversable (URec Double :: * -> *) 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> URec Double a -> f (URec Double b) #

sequenceA :: Applicative f => URec Double (f a) -> f (URec Double a) #

mapM :: Monad m => (a -> m b) -> URec Double a -> m (URec Double b) #

sequence :: Monad m => URec Double (m a) -> m (URec Double a) #

Traversable (URec Float :: * -> *) 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> URec Float a -> f (URec Float b) #

sequenceA :: Applicative f => URec Float (f a) -> f (URec Float a) #

mapM :: Monad m => (a -> m b) -> URec Float a -> m (URec Float b) #

sequence :: Monad m => URec Float (m a) -> m (URec Float a) #

Traversable (URec Int :: * -> *) 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> URec Int a -> f (URec Int b) #

sequenceA :: Applicative f => URec Int (f a) -> f (URec Int a) #

mapM :: Monad m => (a -> m b) -> URec Int a -> m (URec Int b) #

sequence :: Monad m => URec Int (m a) -> m (URec Int a) #

Traversable (URec Word :: * -> *) 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> URec Word a -> f (URec Word b) #

sequenceA :: Applicative f => URec Word (f a) -> f (URec Word a) #

mapM :: Monad m => (a -> m b) -> URec Word a -> m (URec Word b) #

sequence :: Monad m => URec Word (m a) -> m (URec Word a) #

Traversable (URec (Ptr ()) :: * -> *) 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> URec (Ptr ()) a -> f (URec (Ptr ()) b) #

sequenceA :: Applicative f => URec (Ptr ()) (f a) -> f (URec (Ptr ()) a) #

mapM :: Monad m => (a -> m b) -> URec (Ptr ()) a -> m (URec (Ptr ()) b) #

sequence :: Monad m => URec (Ptr ()) (m a) -> m (URec (Ptr ()) a) #

Traversable (Const m :: * -> *)

Since: base-4.7.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> Const m a -> f (Const m b) #

sequenceA :: Applicative f => Const m (f a) -> f (Const m a) #

mapM :: Monad m0 => (a -> m0 b) -> Const m a -> m0 (Const m b) #

sequence :: Monad m0 => Const m (m0 a) -> m0 (Const m a) #

Traversable f => Traversable (IdentityT f) 
Instance details

Defined in Control.Monad.Trans.Identity

Methods

traverse :: Applicative f0 => (a -> f0 b) -> IdentityT f a -> f0 (IdentityT f b) #

sequenceA :: Applicative f0 => IdentityT f (f0 a) -> f0 (IdentityT f a) #

mapM :: Monad m => (a -> m b) -> IdentityT f a -> m (IdentityT f b) #

sequence :: Monad m => IdentityT f (m a) -> m (IdentityT f a) #

Traversable f => Traversable (ExceptT e f) 
Instance details

Defined in Control.Monad.Trans.Except

Methods

traverse :: Applicative f0 => (a -> f0 b) -> ExceptT e f a -> f0 (ExceptT e f b) #

sequenceA :: Applicative f0 => ExceptT e f (f0 a) -> f0 (ExceptT e f a) #

mapM :: Monad m => (a -> m b) -> ExceptT e f a -> m (ExceptT e f b) #

sequence :: Monad m => ExceptT e f (m a) -> m (ExceptT e f a) #

Traversable f => Traversable (ErrorT e f) 
Instance details

Defined in Control.Monad.Trans.Error

Methods

traverse :: Applicative f0 => (a -> f0 b) -> ErrorT e f a -> f0 (ErrorT e f b) #

sequenceA :: Applicative f0 => ErrorT e f (f0 a) -> f0 (ErrorT e f a) #

mapM :: Monad m => (a -> m b) -> ErrorT e f a -> m (ErrorT e f b) #

sequence :: Monad m => ErrorT e f (m a) -> m (ErrorT e f a) #

Traversable f => Traversable (Backwards f)

Derived instance.

Instance details

Defined in Control.Applicative.Backwards

Methods

traverse :: Applicative f0 => (a -> f0 b) -> Backwards f a -> f0 (Backwards f b) #

sequenceA :: Applicative f0 => Backwards f (f0 a) -> f0 (Backwards f a) #

mapM :: Monad m => (a -> m b) -> Backwards f a -> m (Backwards f b) #

sequence :: Monad m => Backwards f (m a) -> m (Backwards f a) #

Traversable f => Traversable (WriterT w f) 
Instance details

Defined in Control.Monad.Trans.Writer.Lazy

Methods

traverse :: Applicative f0 => (a -> f0 b) -> WriterT w f a -> f0 (WriterT w f b) #

sequenceA :: Applicative f0 => WriterT w f (f0 a) -> f0 (WriterT w f a) #

mapM :: Monad m => (a -> m b) -> WriterT w f a -> m (WriterT w f b) #

sequence :: Monad m => WriterT w f (m a) -> m (WriterT w f a) #

Traversable f => Traversable (WriterT w f) 
Instance details

Defined in Control.Monad.Trans.Writer.Strict

Methods

traverse :: Applicative f0 => (a -> f0 b) -> WriterT w f a -> f0 (WriterT w f b) #

sequenceA :: Applicative f0 => WriterT w f (f0 a) -> f0 (WriterT w f a) #

mapM :: Monad m => (a -> m b) -> WriterT w f a -> m (WriterT w f b) #

sequence :: Monad m => WriterT w f (m a) -> m (WriterT w f a) #

Bitraversable p => Traversable (Join p) 
Instance details

Defined in Data.Bifunctor.Join

Methods

traverse :: Applicative f => (a -> f b) -> Join p a -> f (Join p b) #

sequenceA :: Applicative f => Join p (f a) -> f (Join p a) #

mapM :: Monad m => (a -> m b) -> Join p a -> m (Join p b) #

sequence :: Monad m => Join p (m a) -> m (Join p a) #

Traversable (Tagged s) 
Instance details

Defined in Data.Tagged

Methods

traverse :: Applicative f => (a -> f b) -> Tagged s a -> f (Tagged s b) #

sequenceA :: Applicative f => Tagged s (f a) -> f (Tagged s a) #

mapM :: Monad m => (a -> m b) -> Tagged s a -> m (Tagged s b) #

sequence :: Monad m => Tagged s (m a) -> m (Tagged s a) #

Traversable (Forget r a) 
Instance details

Defined in Data.Profunctor.Types

Methods

traverse :: Applicative f => (a0 -> f b) -> Forget r a a0 -> f (Forget r a b) #

sequenceA :: Applicative f => Forget r a (f a0) -> f (Forget r a a0) #

mapM :: Monad m => (a0 -> m b) -> Forget r a a0 -> m (Forget r a b) #

sequence :: Monad m => Forget r a (m a0) -> m (Forget r a a0) #

Traversable f => Traversable (AlongsideLeft f b) 
Instance details

Defined in Control.Lens.Internal.Getter

Methods

traverse :: Applicative f0 => (a -> f0 b0) -> AlongsideLeft f b a -> f0 (AlongsideLeft f b b0) #

sequenceA :: Applicative f0 => AlongsideLeft f b (f0 a) -> f0 (AlongsideLeft f b a) #

mapM :: Monad m => (a -> m b0) -> AlongsideLeft f b a -> m (AlongsideLeft f b b0) #

sequence :: Monad m => AlongsideLeft f b (m a) -> m (AlongsideLeft f b a) #

Traversable f => Traversable (AlongsideRight f a) 
Instance details

Defined in Control.Lens.Internal.Getter

Methods

traverse :: Applicative f0 => (a0 -> f0 b) -> AlongsideRight f a a0 -> f0 (AlongsideRight f a b) #

sequenceA :: Applicative f0 => AlongsideRight f a (f0 a0) -> f0 (AlongsideRight f a a0) #

mapM :: Monad m => (a0 -> m b) -> AlongsideRight f a a0 -> m (AlongsideRight f a b) #

sequence :: Monad m => AlongsideRight f a (m a0) -> m (AlongsideRight f a a0) #

Traversable (K1 i c :: * -> *) 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> K1 i c a -> f (K1 i c b) #

sequenceA :: Applicative f => K1 i c (f a) -> f (K1 i c a) #

mapM :: Monad m => (a -> m b) -> K1 i c a -> m (K1 i c b) #

sequence :: Monad m => K1 i c (m a) -> m (K1 i c a) #

(Traversable f, Traversable g) => Traversable (f :+: g) 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f0 => (a -> f0 b) -> (f :+: g) a -> f0 ((f :+: g) b) #

sequenceA :: Applicative f0 => (f :+: g) (f0 a) -> f0 ((f :+: g) a) #

mapM :: Monad m => (a -> m b) -> (f :+: g) a -> m ((f :+: g) b) #

sequence :: Monad m => (f :+: g) (m a) -> m ((f :+: g) a) #

(Traversable f, Traversable g) => Traversable (f :*: g) 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f0 => (a -> f0 b) -> (f :*: g) a -> f0 ((f :*: g) b) #

sequenceA :: Applicative f0 => (f :*: g) (f0 a) -> f0 ((f :*: g) a) #

mapM :: Monad m => (a -> m b) -> (f :*: g) a -> m ((f :*: g) b) #

sequence :: Monad m => (f :*: g) (m a) -> m ((f :*: g) a) #

Traversable (Magma i t b) 
Instance details

Defined in Control.Lens.Internal.Magma

Methods

traverse :: Applicative f => (a -> f b0) -> Magma i t b a -> f (Magma i t b b0) #

sequenceA :: Applicative f => Magma i t b (f a) -> f (Magma i t b a) #

mapM :: Monad m => (a -> m b0) -> Magma i t b a -> m (Magma i t b b0) #

sequence :: Monad m => Magma i t b (m a) -> m (Magma i t b a) #

(Traversable f, Traversable g) => Traversable (Product f g)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Product

Methods

traverse :: Applicative f0 => (a -> f0 b) -> Product f g a -> f0 (Product f g b) #

sequenceA :: Applicative f0 => Product f g (f0 a) -> f0 (Product f g a) #

mapM :: Monad m => (a -> m b) -> Product f g a -> m (Product f g b) #

sequence :: Monad m => Product f g (m a) -> m (Product f g a) #

(Traversable f, Traversable g) => Traversable (Sum f g)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Sum

Methods

traverse :: Applicative f0 => (a -> f0 b) -> Sum f g a -> f0 (Sum f g b) #

sequenceA :: Applicative f0 => Sum f g (f0 a) -> f0 (Sum f g a) #

mapM :: Monad m => (a -> m b) -> Sum f g a -> m (Sum f g b) #

sequence :: Monad m => Sum f g (m a) -> m (Sum f g a) #

Traversable f => Traversable (M1 i c f) 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f0 => (a -> f0 b) -> M1 i c f a -> f0 (M1 i c f b) #

sequenceA :: Applicative f0 => M1 i c f (f0 a) -> f0 (M1 i c f a) #

mapM :: Monad m => (a -> m b) -> M1 i c f a -> m (M1 i c f b) #

sequence :: Monad m => M1 i c f (m a) -> m (M1 i c f a) #

(Traversable f, Traversable g) => Traversable (f :.: g) 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f0 => (a -> f0 b) -> (f :.: g) a -> f0 ((f :.: g) b) #

sequenceA :: Applicative f0 => (f :.: g) (f0 a) -> f0 ((f :.: g) a) #

mapM :: Monad m => (a -> m b) -> (f :.: g) a -> m ((f :.: g) b) #

sequence :: Monad m => (f :.: g) (m a) -> m ((f :.: g) a) #

(Traversable f, Traversable g) => Traversable (Compose f g)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Compose

Methods

traverse :: Applicative f0 => (a -> f0 b) -> Compose f g a -> f0 (Compose f g b) #

sequenceA :: Applicative f0 => Compose f g (f0 a) -> f0 (Compose f g a) #

mapM :: Monad m => (a -> m b) -> Compose f g a -> m (Compose f g b) #

sequence :: Monad m => Compose f g (m a) -> m (Compose f g a) #

Traversable (Clown f a :: * -> *) 
Instance details

Defined in Data.Bifunctor.Clown

Methods

traverse :: Applicative f0 => (a0 -> f0 b) -> Clown f a a0 -> f0 (Clown f a b) #

sequenceA :: Applicative f0 => Clown f a (f0 a0) -> f0 (Clown f a a0) #

mapM :: Monad m => (a0 -> m b) -> Clown f a a0 -> m (Clown f a b) #

sequence :: Monad m => Clown f a (m a0) -> m (Clown f a a0) #

Bitraversable p => Traversable (Flip p a) 
Instance details

Defined in Data.Bifunctor.Flip

Methods

traverse :: Applicative f => (a0 -> f b) -> Flip p a a0 -> f (Flip p a b) #

sequenceA :: Applicative f => Flip p a (f a0) -> f (Flip p a a0) #

mapM :: Monad m => (a0 -> m b) -> Flip p a a0 -> m (Flip p a b) #

sequence :: Monad m => Flip p a (m a0) -> m (Flip p a a0) #

Traversable g => Traversable (Joker g a) 
Instance details

Defined in Data.Bifunctor.Joker

Methods

traverse :: Applicative f => (a0 -> f b) -> Joker g a a0 -> f (Joker g a b) #

sequenceA :: Applicative f => Joker g a (f a0) -> f (Joker g a a0) #

mapM :: Monad m => (a0 -> m b) -> Joker g a a0 -> m (Joker g a b) #

sequence :: Monad m => Joker g a (m a0) -> m (Joker g a a0) #

Bitraversable p => Traversable (WrappedBifunctor p a) 
Instance details

Defined in Data.Bifunctor.Wrapped

Methods

traverse :: Applicative f => (a0 -> f b) -> WrappedBifunctor p a a0 -> f (WrappedBifunctor p a b) #

sequenceA :: Applicative f => WrappedBifunctor p a (f a0) -> f (WrappedBifunctor p a a0) #

mapM :: Monad m => (a0 -> m b) -> WrappedBifunctor p a a0 -> m (WrappedBifunctor p a b) #

sequence :: Monad m => WrappedBifunctor p a (m a0) -> m (WrappedBifunctor p a a0) #

(Traversable f, Bitraversable p) => Traversable (Tannen f p a) 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

traverse :: Applicative f0 => (a0 -> f0 b) -> Tannen f p a a0 -> f0 (Tannen f p a b) #

sequenceA :: Applicative f0 => Tannen f p a (f0 a0) -> f0 (Tannen f p a a0) #

mapM :: Monad m => (a0 -> m b) -> Tannen f p a a0 -> m (Tannen f p a b) #

sequence :: Monad m => Tannen f p a (m a0) -> m (Tannen f p a a0) #

(Bitraversable p, Traversable g) => Traversable (Biff p f g a) 
Instance details

Defined in Data.Bifunctor.Biff

Methods

traverse :: Applicative f0 => (a0 -> f0 b) -> Biff p f g a a0 -> f0 (Biff p f g a b) #

sequenceA :: Applicative f0 => Biff p f g a (f0 a0) -> f0 (Biff p f g a a0) #

mapM :: Monad m => (a0 -> m b) -> Biff p f g a a0 -> m (Biff p f g a b) #

sequence :: Monad m => Biff p f g a (m a0) -> m (Biff p f g a a0) #

class (Foldable1 t, Traversable t) => Traversable1 (t :: * -> *) where #

Minimal complete definition

traverse1 | sequence1

Methods

traverse1 :: Apply f => (a -> f b) -> t a -> f (t b) #

Instances
Traversable1 Par1 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f => (a -> f b) -> Par1 a -> f (Par1 b) #

sequence1 :: Apply f => Par1 (f b) -> f (Par1 b)

Traversable1 Identity 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f => (a -> f b) -> Identity a -> f (Identity b) #

sequence1 :: Apply f => Identity (f b) -> f (Identity b)

Traversable1 Complex 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f => (a -> f b) -> Complex a -> f (Complex b) #

sequence1 :: Apply f => Complex (f b) -> f (Complex b)

Traversable1 NonEmpty 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f => (a -> f b) -> NonEmpty a -> f (NonEmpty b) #

sequence1 :: Apply f => NonEmpty (f b) -> f (NonEmpty b)

Traversable1 Tree 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f => (a -> f b) -> Tree a -> f (Tree b) #

sequence1 :: Apply f => Tree (f b) -> f (Tree b)

Traversable1 V3 
Instance details

Defined in Linear.V3

Methods

traverse1 :: Apply f => (a -> f b) -> V3 a -> f (V3 b) #

sequence1 :: Apply f => V3 (f b) -> f (V3 b)

Traversable1 V2 
Instance details

Defined in Linear.V2

Methods

traverse1 :: Apply f => (a -> f b) -> V2 a -> f (V2 b) #

sequence1 :: Apply f => V2 (f b) -> f (V2 b)

Traversable1 Log 
Instance details

Defined in Numeric.Log

Methods

traverse1 :: Apply f => (a -> f b) -> Log a -> f (Log b) #

sequence1 :: Apply f => Log (f b) -> f (Log b)

Traversable1 V1 
Instance details

Defined in Linear.V1

Methods

traverse1 :: Apply f => (a -> f b) -> V1 a -> f (V1 b) #

sequence1 :: Apply f => V1 (f b) -> f (V1 b)

Traversable1 (V1 :: * -> *) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f => (a -> f b) -> V1 a -> f (V1 b) #

sequence1 :: Apply f => V1 (f b) -> f (V1 b)

Traversable1 ((,) a) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f => (a0 -> f b) -> (a, a0) -> f (a, b) #

sequence1 :: Apply f => (a, f b) -> f (a, b)

Traversable1 f => Traversable1 (Lift f) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f0 => (a -> f0 b) -> Lift f a -> f0 (Lift f b) #

sequence1 :: Apply f0 => Lift f (f0 b) -> f0 (Lift f b)

Traversable1 f => Traversable1 (Yoneda f) 
Instance details

Defined in Data.Functor.Yoneda

Methods

traverse1 :: Apply f0 => (a -> f0 b) -> Yoneda f a -> f0 (Yoneda f b) #

sequence1 :: Apply f0 => Yoneda f (f0 b) -> f0 (Yoneda f b)

Traversable1 f => Traversable1 (Rec1 f) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f0 => (a -> f0 b) -> Rec1 f a -> f0 (Rec1 f b) #

sequence1 :: Apply f0 => Rec1 f (f0 b) -> f0 (Rec1 f b)

Traversable1 f => Traversable1 (IdentityT f) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f0 => (a -> f0 b) -> IdentityT f a -> f0 (IdentityT f b) #

sequence1 :: Apply f0 => IdentityT f (f0 b) -> f0 (IdentityT f b)

Traversable1 f => Traversable1 (Backwards f) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f0 => (a -> f0 b) -> Backwards f a -> f0 (Backwards f b) #

sequence1 :: Apply f0 => Backwards f (f0 b) -> f0 (Backwards f b)

Traversable1 f => Traversable1 (Reverse f) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f0 => (a -> f0 b) -> Reverse f a -> f0 (Reverse f b) #

sequence1 :: Apply f0 => Reverse f (f0 b) -> f0 (Reverse f b)

Bitraversable1 p => Traversable1 (Join p) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f => (a -> f b) -> Join p a -> f (Join p b) #

sequence1 :: Apply f => Join p (f b) -> f (Join p b)

Traversable1 (Tagged a) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f => (a0 -> f b) -> Tagged a a0 -> f (Tagged a b) #

sequence1 :: Apply f => Tagged a (f b) -> f (Tagged a b)

Traversable1 f => Traversable1 (AlongsideLeft f b) 
Instance details

Defined in Control.Lens.Internal.Getter

Methods

traverse1 :: Apply f0 => (a -> f0 b0) -> AlongsideLeft f b a -> f0 (AlongsideLeft f b b0) #

sequence1 :: Apply f0 => AlongsideLeft f b (f0 b0) -> f0 (AlongsideLeft f b b0)

Traversable1 f => Traversable1 (AlongsideRight f a) 
Instance details

Defined in Control.Lens.Internal.Getter

Methods

traverse1 :: Apply f0 => (a0 -> f0 b) -> AlongsideRight f a a0 -> f0 (AlongsideRight f a b) #

sequence1 :: Apply f0 => AlongsideRight f a (f0 b) -> f0 (AlongsideRight f a b)

(Traversable1 f, Traversable1 g) => Traversable1 (f :+: g) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f0 => (a -> f0 b) -> (f :+: g) a -> f0 ((f :+: g) b) #

sequence1 :: Apply f0 => (f :+: g) (f0 b) -> f0 ((f :+: g) b)

(Traversable1 f, Traversable1 g) => Traversable1 (f :*: g) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f0 => (a -> f0 b) -> (f :*: g) a -> f0 ((f :*: g) b) #

sequence1 :: Apply f0 => (f :*: g) (f0 b) -> f0 ((f :*: g) b)

(Traversable1 f, Traversable1 g) => Traversable1 (Product f g) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f0 => (a -> f0 b) -> Product f g a -> f0 (Product f g b) #

sequence1 :: Apply f0 => Product f g (f0 b) -> f0 (Product f g b)

(Traversable1 f, Traversable1 g) => Traversable1 (Sum f g) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f0 => (a -> f0 b) -> Sum f g a -> f0 (Sum f g b) #

sequence1 :: Apply f0 => Sum f g (f0 b) -> f0 (Sum f g b)

Traversable1 f => Traversable1 (M1 i c f) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f0 => (a -> f0 b) -> M1 i c f a -> f0 (M1 i c f b) #

sequence1 :: Apply f0 => M1 i c f (f0 b) -> f0 (M1 i c f b)

(Traversable1 f, Traversable1 g) => Traversable1 (f :.: g) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f0 => (a -> f0 b) -> (f :.: g) a -> f0 ((f :.: g) b) #

sequence1 :: Apply f0 => (f :.: g) (f0 b) -> f0 ((f :.: g) b)

(Traversable1 f, Traversable1 g) => Traversable1 (Compose f g) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f0 => (a -> f0 b) -> Compose f g a -> f0 (Compose f g b) #

sequence1 :: Apply f0 => Compose f g (f0 b) -> f0 (Compose f g b)

Traversable1 g => Traversable1 (Joker g a) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f => (a0 -> f b) -> Joker g a a0 -> f (Joker g a b) #

sequence1 :: Apply f => Joker g a (f b) -> f (Joker g a b)

class Profunctor (p :: * -> * -> *) where #

Minimal complete definition

dimap | lmap, rmap

Methods

dimap :: (a -> b) -> (c -> d) -> p b c -> p a d #

lmap :: (a -> b) -> p b c -> p a c #

rmap :: (b -> c) -> p a b -> p a c #

Instances
Profunctor ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

dimap :: (a -> b) -> (c -> d) -> ReifiedGetter b c -> ReifiedGetter a d #

lmap :: (a -> b) -> ReifiedGetter b c -> ReifiedGetter a c #

rmap :: (b -> c) -> ReifiedGetter a b -> ReifiedGetter a c #

(#.) :: Coercible c b => (b -> c) -> ReifiedGetter a b -> ReifiedGetter a c

(.#) :: Coercible b a => ReifiedGetter b c -> (a -> b) -> ReifiedGetter a c

Profunctor ReifiedFold 
Instance details

Defined in Control.Lens.Reified

Methods

dimap :: (a -> b) -> (c -> d) -> ReifiedFold b c -> ReifiedFold a d #

lmap :: (a -> b) -> ReifiedFold b c -> ReifiedFold a c #

rmap :: (b -> c) -> ReifiedFold a b -> ReifiedFold a c #

(#.) :: Coercible c b => (b -> c) -> ReifiedFold a b -> ReifiedFold a c

(.#) :: Coercible b a => ReifiedFold b c -> (a -> b) -> ReifiedFold a c

Profunctor (ReifiedIndexedGetter i) 
Instance details

Defined in Control.Lens.Reified

Methods

dimap :: (a -> b) -> (c -> d) -> ReifiedIndexedGetter i b c -> ReifiedIndexedGetter i a d #

lmap :: (a -> b) -> ReifiedIndexedGetter i b c -> ReifiedIndexedGetter i a c #

rmap :: (b -> c) -> ReifiedIndexedGetter i a b -> ReifiedIndexedGetter i a c #

(#.) :: Coercible c b => (b -> c) -> ReifiedIndexedGetter i a b -> ReifiedIndexedGetter i a c

(.#) :: Coercible b a => ReifiedIndexedGetter i b c -> (a -> b) -> ReifiedIndexedGetter i a c

Profunctor (ReifiedIndexedFold i) 
Instance details

Defined in Control.Lens.Reified

Methods

dimap :: (a -> b) -> (c -> d) -> ReifiedIndexedFold i b c -> ReifiedIndexedFold i a d #

lmap :: (a -> b) -> ReifiedIndexedFold i b c -> ReifiedIndexedFold i a c #

rmap :: (b -> c) -> ReifiedIndexedFold i a b -> ReifiedIndexedFold i a c #

(#.) :: Coercible c b => (b -> c) -> ReifiedIndexedFold i a b -> ReifiedIndexedFold i a c

(.#) :: Coercible b a => ReifiedIndexedFold i b c -> (a -> b) -> ReifiedIndexedFold i a c

Profunctor (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

dimap :: (a -> b) -> (c -> d) -> Indexed i b c -> Indexed i a d #

lmap :: (a -> b) -> Indexed i b c -> Indexed i a c #

rmap :: (b -> c) -> Indexed i a b -> Indexed i a c #

(#.) :: Coercible c b => (b -> c) -> Indexed i a b -> Indexed i a c

(.#) :: Coercible b a => Indexed i b c -> (a -> b) -> Indexed i a c

Monad m => Profunctor (Kleisli m) 
Instance details

Defined in Data.Profunctor.Unsafe

Methods

dimap :: (a -> b) -> (c -> d) -> Kleisli m b c -> Kleisli m a d #

lmap :: (a -> b) -> Kleisli m b c -> Kleisli m a c #

rmap :: (b -> c) -> Kleisli m a b -> Kleisli m a c #

(#.) :: Coercible c b => (b -> c) -> Kleisli m a b -> Kleisli m a c

(.#) :: Coercible b a => Kleisli m b c -> (a -> b) -> Kleisli m a c

Profunctor (Tagged :: * -> * -> *) 
Instance details

Defined in Data.Profunctor.Unsafe

Methods

dimap :: (a -> b) -> (c -> d) -> Tagged b c -> Tagged a d #

lmap :: (a -> b) -> Tagged b c -> Tagged a c #

rmap :: (b -> c) -> Tagged a b -> Tagged a c #

(#.) :: Coercible c b => (b -> c) -> Tagged a b -> Tagged a c

(.#) :: Coercible b a => Tagged b c -> (a -> b) -> Tagged a c

Functor f => Profunctor (Costar f) 
Instance details

Defined in Data.Profunctor.Types

Methods

dimap :: (a -> b) -> (c -> d) -> Costar f b c -> Costar f a d #

lmap :: (a -> b) -> Costar f b c -> Costar f a c #

rmap :: (b -> c) -> Costar f a b -> Costar f a c #

(#.) :: Coercible c b => (b -> c) -> Costar f a b -> Costar f a c

(.#) :: Coercible b a => Costar f b c -> (a -> b) -> Costar f a c

Profunctor (Forget r) 
Instance details

Defined in Data.Profunctor.Types

Methods

dimap :: (a -> b) -> (c -> d) -> Forget r b c -> Forget r a d #

lmap :: (a -> b) -> Forget r b c -> Forget r a c #

rmap :: (b -> c) -> Forget r a b -> Forget r a c #

(#.) :: Coercible c b => (b -> c) -> Forget r a b -> Forget r a c

(.#) :: Coercible b a => Forget r b c -> (a -> b) -> Forget r a c

Functor f => Profunctor (Star f) 
Instance details

Defined in Data.Profunctor.Types

Methods

dimap :: (a -> b) -> (c -> d) -> Star f b c -> Star f a d #

lmap :: (a -> b) -> Star f b c -> Star f a c #

rmap :: (b -> c) -> Star f a b -> Star f a c #

(#.) :: Coercible c b => (b -> c) -> Star f a b -> Star f a c

(.#) :: Coercible b a => Star f b c -> (a -> b) -> Star f a c

Arrow p => Profunctor (WrappedArrow p) 
Instance details

Defined in Data.Profunctor.Types

Methods

dimap :: (a -> b) -> (c -> d) -> WrappedArrow p b c -> WrappedArrow p a d #

lmap :: (a -> b) -> WrappedArrow p b c -> WrappedArrow p a c #

rmap :: (b -> c) -> WrappedArrow p a b -> WrappedArrow p a c #

(#.) :: Coercible c b => (b -> c) -> WrappedArrow p a b -> WrappedArrow p a c

(.#) :: Coercible b a => WrappedArrow p b c -> (a -> b) -> WrappedArrow p a c

Profunctor (CopastroSum p) 
Instance details

Defined in Data.Profunctor.Choice

Methods

dimap :: (a -> b) -> (c -> d) -> CopastroSum p b c -> CopastroSum p a d #

lmap :: (a -> b) -> CopastroSum p b c -> CopastroSum p a c #

rmap :: (b -> c) -> CopastroSum p a b -> CopastroSum p a c #

(#.) :: Coercible c b => (b -> c) -> CopastroSum p a b -> CopastroSum p a c

(.#) :: Coercible b a => CopastroSum p b c -> (a -> b) -> CopastroSum p a c

Profunctor (CotambaraSum p) 
Instance details

Defined in Data.Profunctor.Choice

Methods

dimap :: (a -> b) -> (c -> d) -> CotambaraSum p b c -> CotambaraSum p a d #

lmap :: (a -> b) -> CotambaraSum p b c -> CotambaraSum p a c #

rmap :: (b -> c) -> CotambaraSum p a b -> CotambaraSum p a c #

(#.) :: Coercible c b => (b -> c) -> CotambaraSum p a b -> CotambaraSum p a c

(.#) :: Coercible b a => CotambaraSum p b c -> (a -> b) -> CotambaraSum p a c

Profunctor (PastroSum p) 
Instance details

Defined in Data.Profunctor.Choice

Methods

dimap :: (a -> b) -> (c -> d) -> PastroSum p b c -> PastroSum p a d #

lmap :: (a -> b) -> PastroSum p b c -> PastroSum p a c #

rmap :: (b -> c) -> PastroSum p a b -> PastroSum p a c #

(#.) :: Coercible c b => (b -> c) -> PastroSum p a b -> PastroSum p a c

(.#) :: Coercible b a => PastroSum p b c -> (a -> b) -> PastroSum p a c

Profunctor p => Profunctor (TambaraSum p) 
Instance details

Defined in Data.Profunctor.Choice

Methods

dimap :: (a -> b) -> (c -> d) -> TambaraSum p b c -> TambaraSum p a d #

lmap :: (a -> b) -> TambaraSum p b c -> TambaraSum p a c #

rmap :: (b -> c) -> TambaraSum p a b -> TambaraSum p a c #

(#.) :: Coercible c b => (b -> c) -> TambaraSum p a b -> TambaraSum p a c

(.#) :: Coercible b a => TambaraSum p b c -> (a -> b) -> TambaraSum p a c

Profunctor p => Profunctor (Tambara p) 
Instance details

Defined in Data.Profunctor.Strong

Methods

dimap :: (a -> b) -> (c -> d) -> Tambara p b c -> Tambara p a d #

lmap :: (a -> b) -> Tambara p b c -> Tambara p a c #

rmap :: (b -> c) -> Tambara p a b -> Tambara p a c #

(#.) :: Coercible c b => (b -> c) -> Tambara p a b -> Tambara p a c

(.#) :: Coercible b a => Tambara p b c -> (a -> b) -> Tambara p a c

Profunctor (Copastro p) 
Instance details

Defined in Data.Profunctor.Strong

Methods

dimap :: (a -> b) -> (c -> d) -> Copastro p b c -> Copastro p a d #

lmap :: (a -> b) -> Copastro p b c -> Copastro p a c #

rmap :: (b -> c) -> Copastro p a b -> Copastro p a c #

(#.) :: Coercible c b => (b -> c) -> Copastro p a b -> Copastro p a c

(.#) :: Coercible b a => Copastro p b c -> (a -> b) -> Copastro p a c

Profunctor (Cotambara p) 
Instance details

Defined in Data.Profunctor.Strong

Methods

dimap :: (a -> b) -> (c -> d) -> Cotambara p b c -> Cotambara p a d #

lmap :: (a -> b) -> Cotambara p b c -> Cotambara p a c #

rmap :: (b -> c) -> Cotambara p a b -> Cotambara p a c #

(#.) :: Coercible c b => (b -> c) -> Cotambara p a b -> Cotambara p a c

(.#) :: Coercible b a => Cotambara p b c -> (a -> b) -> Cotambara p a c

Profunctor (Pastro p) 
Instance details

Defined in Data.Profunctor.Strong

Methods

dimap :: (a -> b) -> (c -> d) -> Pastro p b c -> Pastro p a d #

lmap :: (a -> b) -> Pastro p b c -> Pastro p a c #

rmap :: (b -> c) -> Pastro p a b -> Pastro p a c #

(#.) :: Coercible c b => (b -> c) -> Pastro p a b -> Pastro p a c

(.#) :: Coercible b a => Pastro p b c -> (a -> b) -> Pastro p a c

Profunctor ((->) :: * -> * -> *) 
Instance details

Defined in Data.Profunctor.Unsafe

Methods

dimap :: (a -> b) -> (c -> d) -> (b -> c) -> a -> d #

lmap :: (a -> b) -> (b -> c) -> a -> c #

rmap :: (b -> c) -> (a -> b) -> a -> c #

(#.) :: Coercible c b => (b -> c) -> (a -> b) -> a -> c

(.#) :: Coercible b a => (b -> c) -> (a -> b) -> a -> c

Profunctor (Exchange a b) 
Instance details

Defined in Control.Lens.Internal.Iso

Methods

dimap :: (a0 -> b0) -> (c -> d) -> Exchange a b b0 c -> Exchange a b a0 d #

lmap :: (a0 -> b0) -> Exchange a b b0 c -> Exchange a b a0 c #

rmap :: (b0 -> c) -> Exchange a b a0 b0 -> Exchange a b a0 c #

(#.) :: Coercible c b0 => (b0 -> c) -> Exchange a b a0 b0 -> Exchange a b a0 c

(.#) :: Coercible b0 a0 => Exchange a b b0 c -> (a0 -> b0) -> Exchange a b a0 c

Functor w => Profunctor (Cokleisli w) 
Instance details

Defined in Data.Profunctor.Unsafe

Methods

dimap :: (a -> b) -> (c -> d) -> Cokleisli w b c -> Cokleisli w a d #

lmap :: (a -> b) -> Cokleisli w b c -> Cokleisli w a c #

rmap :: (b -> c) -> Cokleisli w a b -> Cokleisli w a c #

(#.) :: Coercible c b => (b -> c) -> Cokleisli w a b -> Cokleisli w a c

(.#) :: Coercible b a => Cokleisli w b c -> (a -> b) -> Cokleisli w a c

Contravariant f => Profunctor (Clown f :: * -> * -> *) 
Instance details

Defined in Data.Profunctor.Unsafe

Methods

dimap :: (a -> b) -> (c -> d) -> Clown f b c -> Clown f a d #

lmap :: (a -> b) -> Clown f b c -> Clown f a c #

rmap :: (b -> c) -> Clown f a b -> Clown f a c #

(#.) :: Coercible c b => (b -> c) -> Clown f a b -> Clown f a c

(.#) :: Coercible b a => Clown f b c -> (a -> b) -> Clown f a c

Functor f => Profunctor (Joker f :: * -> * -> *) 
Instance details

Defined in Data.Profunctor.Unsafe

Methods

dimap :: (a -> b) -> (c -> d) -> Joker f b c -> Joker f a d #

lmap :: (a -> b) -> Joker f b c -> Joker f a c #

rmap :: (b -> c) -> Joker f a b -> Joker f a c #

(#.) :: Coercible c b => (b -> c) -> Joker f a b -> Joker f a c

(.#) :: Coercible b a => Joker f b c -> (a -> b) -> Joker f a c

(Profunctor p, Profunctor q) => Profunctor (Product p q) 
Instance details

Defined in Data.Profunctor.Unsafe

Methods

dimap :: (a -> b) -> (c -> d) -> Product p q b c -> Product p q a d #

lmap :: (a -> b) -> Product p q b c -> Product p q a c #

rmap :: (b -> c) -> Product p q a b -> Product p q a c #

(#.) :: Coercible c b => (b -> c) -> Product p q a b -> Product p q a c

(.#) :: Coercible b a => Product p q b c -> (a -> b) -> Product p q a c

(Functor f, Profunctor p) => Profunctor (Tannen f p) 
Instance details

Defined in Data.Profunctor.Unsafe

Methods

dimap :: (a -> b) -> (c -> d) -> Tannen f p b c -> Tannen f p a d #

lmap :: (a -> b) -> Tannen f p b c -> Tannen f p a c #

rmap :: (b -> c) -> Tannen f p a b -> Tannen f p a c #

(#.) :: Coercible c b => (b -> c) -> Tannen f p a b -> Tannen f p a c

(.#) :: Coercible b a => Tannen f p b c -> (a -> b) -> Tannen f p a c

(Profunctor p, Functor f, Functor g) => Profunctor (Biff p f g) 
Instance details

Defined in Data.Profunctor.Unsafe

Methods

dimap :: (a -> b) -> (c -> d) -> Biff p f g b c -> Biff p f g a d #

lmap :: (a -> b) -> Biff p f g b c -> Biff p f g a c #

rmap :: (b -> c) -> Biff p f g a b -> Biff p f g a c #

(#.) :: Coercible c b => (b -> c) -> Biff p f g a b -> Biff p f g a c

(.#) :: Coercible b a => Biff p f g b c -> (a -> b) -> Biff p f g a c

class Profunctor p => Choice (p :: * -> * -> *) where #

Minimal complete definition

left' | right'

Methods

left' :: p a b -> p (Either a c) (Either b c) #

right' :: p a b -> p (Either c a) (Either c b) #

Instances
Choice ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

left' :: ReifiedGetter a b -> ReifiedGetter (Either a c) (Either b c) #

right' :: ReifiedGetter a b -> ReifiedGetter (Either c a) (Either c b) #

Choice ReifiedFold 
Instance details

Defined in Control.Lens.Reified

Methods

left' :: ReifiedFold a b -> ReifiedFold (Either a c) (Either b c) #

right' :: ReifiedFold a b -> ReifiedFold (Either c a) (Either c b) #

Choice (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

left' :: Indexed i a b -> Indexed i (Either a c) (Either b c) #

right' :: Indexed i a b -> Indexed i (Either c a) (Either c b) #

Monad m => Choice (Kleisli m) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: Kleisli m a b -> Kleisli m (Either a c) (Either b c) #

right' :: Kleisli m a b -> Kleisli m (Either c a) (Either c b) #

Choice (Tagged :: * -> * -> *) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: Tagged a b -> Tagged (Either a c) (Either b c) #

right' :: Tagged a b -> Tagged (Either c a) (Either c b) #

Traversable w => Choice (Costar w) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: Costar w a b -> Costar w (Either a c) (Either b c) #

right' :: Costar w a b -> Costar w (Either c a) (Either c b) #

Monoid r => Choice (Forget r) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: Forget r a b -> Forget r (Either a c) (Either b c) #

right' :: Forget r a b -> Forget r (Either c a) (Either c b) #

Applicative f => Choice (Star f) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: Star f a b -> Star f (Either a c) (Either b c) #

right' :: Star f a b -> Star f (Either c a) (Either c b) #

ArrowChoice p => Choice (WrappedArrow p) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: WrappedArrow p a b -> WrappedArrow p (Either a c) (Either b c) #

right' :: WrappedArrow p a b -> WrappedArrow p (Either c a) (Either c b) #

Choice (PastroSum p) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: PastroSum p a b -> PastroSum p (Either a c) (Either b c) #

right' :: PastroSum p a b -> PastroSum p (Either c a) (Either c b) #

Profunctor p => Choice (TambaraSum p) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: TambaraSum p a b -> TambaraSum p (Either a c) (Either b c) #

right' :: TambaraSum p a b -> TambaraSum p (Either c a) (Either c b) #

Choice p => Choice (Tambara p) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: Tambara p a b -> Tambara p (Either a c) (Either b c) #

right' :: Tambara p a b -> Tambara p (Either c a) (Either c b) #

Choice ((->) :: * -> * -> *) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: (a -> b) -> Either a c -> Either b c #

right' :: (a -> b) -> Either c a -> Either c b #

Comonad w => Choice (Cokleisli w) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: Cokleisli w a b -> Cokleisli w (Either a c) (Either b c) #

right' :: Cokleisli w a b -> Cokleisli w (Either c a) (Either c b) #

Functor f => Choice (Joker f :: * -> * -> *) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: Joker f a b -> Joker f (Either a c) (Either b c) #

right' :: Joker f a b -> Joker f (Either c a) (Either c b) #

(Choice p, Choice q) => Choice (Product p q) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: Product p q a b -> Product p q (Either a c) (Either b c) #

right' :: Product p q a b -> Product p q (Either c a) (Either c b) #

(Functor f, Choice p) => Choice (Tannen f p) 
Instance details

Defined in Data.Profunctor.Choice

Methods

left' :: Tannen f p a b -> Tannen f p (Either a c) (Either b c) #

right' :: Tannen f p a b -> Tannen f p (Either c a) (Either c b) #

type family Zoomed (m :: * -> *) :: * -> * -> * #

Instances
type Zoomed (MaybeT m) 
Instance details

Defined in Control.Lens.Zoom

type Zoomed (MaybeT m) = FocusingMay (Zoomed m)
type Zoomed (ListT m) 
Instance details

Defined in Control.Lens.Zoom

type Zoomed (ListT m) = FocusingOn [] (Zoomed m)
type Zoomed (IdentityT m) 
Instance details

Defined in Control.Lens.Zoom

type Zoomed (IdentityT m) = Zoomed m
type Zoomed (ExceptT e m) 
Instance details

Defined in Control.Lens.Zoom

type Zoomed (ExceptT e m) = FocusingErr e (Zoomed m)
type Zoomed (ErrorT e m) 
Instance details

Defined in Control.Lens.Zoom

type Zoomed (ErrorT e m) = FocusingErr e (Zoomed m)
type Zoomed (WriterT w m) 
Instance details

Defined in Control.Lens.Zoom

type Zoomed (WriterT w m) = FocusingPlus w (Zoomed m)
type Zoomed (StateT s z) 
Instance details

Defined in Control.Lens.Zoom

type Zoomed (StateT s z) = Focusing z
type Zoomed (StateT s z) 
Instance details

Defined in Control.Lens.Zoom

type Zoomed (StateT s z) = Focusing z
type Zoomed (WriterT w m) 
Instance details

Defined in Control.Lens.Zoom

type Zoomed (WriterT w m) = FocusingPlus w (Zoomed m)
type Zoomed (FreeT f m) 
Instance details

Defined in Control.Lens.Zoom

type Zoomed (FreeT f m) = FocusingFree f m (Zoomed m)
type Zoomed (ReaderT e m) 
Instance details

Defined in Control.Lens.Zoom

type Zoomed (ReaderT e m) = Zoomed m
type Zoomed (RWST r w s z) 
Instance details

Defined in Control.Lens.Zoom

type Zoomed (RWST r w s z) = FocusingWith w z
type Zoomed (RWST r w s z) 
Instance details

Defined in Control.Lens.Zoom

type Zoomed (RWST r w s z) = FocusingWith w z

class (MonadState s m, MonadState t n) => Zoom (m :: * -> *) (n :: * -> *) s t | m -> s, n -> t, m t -> n, n s -> m where #

Minimal complete definition

zoom

Methods

zoom :: LensLike' (Zoomed m c) t s -> m c -> n c #

Instances
Zoom m n s t => Zoom (MaybeT m) (MaybeT n) s t 
Instance details

Defined in Control.Lens.Zoom

Methods

zoom :: LensLike' (Zoomed (MaybeT m) c) t s -> MaybeT m c -> MaybeT n c #

Zoom m n s t => Zoom (ListT m) (ListT n) s t 
Instance details

Defined in Control.Lens.Zoom

Methods

zoom :: LensLike' (Zoomed (ListT m) c) t s -> ListT m c -> ListT n c #

Zoom m n s t => Zoom (IdentityT m) (IdentityT n) s t 
Instance details

Defined in Control.Lens.Zoom

Methods

zoom :: LensLike' (Zoomed (IdentityT m) c) t s -> IdentityT m c -> IdentityT n c #

Zoom m n s t => Zoom (ExceptT e m) (ExceptT e n) s t 
Instance details

Defined in Control.Lens.Zoom

Methods

zoom :: LensLike' (Zoomed (ExceptT e m) c) t s -> ExceptT e m c -> ExceptT e n c #

(Error e, Zoom m n s t) => Zoom (ErrorT e m) (ErrorT e n) s t 
Instance details

Defined in Control.Lens.Zoom

Methods

zoom :: LensLike' (Zoomed (ErrorT e m) c) t s -> ErrorT e m c -> ErrorT e n c #

(Monoid w, Zoom m n s t) => Zoom (WriterT w m) (WriterT w n) s t 
Instance details

Defined in Control.Lens.Zoom

Methods

zoom :: LensLike' (Zoomed (WriterT w m) c) t s -> WriterT w m c -> WriterT w n c #

Monad z => Zoom (StateT s z) (StateT t z) s t 
Instance details

Defined in Control.Lens.Zoom

Methods

zoom :: LensLike' (Zoomed (StateT s z) c) t s -> StateT s z c -> StateT t z c #

Monad z => Zoom (StateT s z) (StateT t z) s t 
Instance details

Defined in Control.Lens.Zoom

Methods

zoom :: LensLike' (Zoomed (StateT s z) c) t s -> StateT s z c -> StateT t z c #

(Monoid w, Zoom m n s t) => Zoom (WriterT w m) (WriterT w n) s t 
Instance details

Defined in Control.Lens.Zoom

Methods

zoom :: LensLike' (Zoomed (WriterT w m) c) t s -> WriterT w m c -> WriterT w n c #

(Functor f, Zoom m n s t) => Zoom (FreeT f m) (FreeT f n) s t 
Instance details

Defined in Control.Lens.Zoom

Methods

zoom :: LensLike' (Zoomed (FreeT f m) c) t s -> FreeT f m c -> FreeT f n c #

Zoom m n s t => Zoom (ReaderT e m) (ReaderT e n) s t 
Instance details

Defined in Control.Lens.Zoom

Methods

zoom :: LensLike' (Zoomed (ReaderT e m) c) t s -> ReaderT e m c -> ReaderT e n c #

(Monoid w, Monad z) => Zoom (RWST r w s z) (RWST r w t z) s t 
Instance details

Defined in Control.Lens.Zoom

Methods

zoom :: LensLike' (Zoomed (RWST r w s z) c) t s -> RWST r w s z c -> RWST r w t z c #

(Monoid w, Monad z) => Zoom (RWST r w s z) (RWST r w t z) s t 
Instance details

Defined in Control.Lens.Zoom

Methods

zoom :: LensLike' (Zoomed (RWST r w s z) c) t s -> RWST r w s z c -> RWST r w t z c #

class (Magnified m ~ Magnified n, MonadReader b m, MonadReader a n) => Magnify (m :: * -> *) (n :: * -> *) b a | m -> b, n -> a, m a -> n, n b -> m where #

Minimal complete definition

magnify

Methods

magnify :: LensLike' (Magnified m c) a b -> m c -> n c #

Instances
Magnify m n b a => Magnify (IdentityT m) (IdentityT n) b a 
Instance details

Defined in Control.Lens.Zoom

Methods

magnify :: LensLike' (Magnified (IdentityT m) c) a b -> IdentityT m c -> IdentityT n c #

Magnify ((->) b :: * -> *) ((->) a :: * -> *) b a 
Instance details

Defined in Control.Lens.Zoom

Methods

magnify :: LensLike' (Magnified ((->) b) c) a b -> (b -> c) -> a -> c #

Monad m => Magnify (ReaderT b m) (ReaderT a m) b a 
Instance details

Defined in Control.Lens.Zoom

Methods

magnify :: LensLike' (Magnified (ReaderT b m) c) a b -> ReaderT b m c -> ReaderT a m c #

(Monad m, Monoid w) => Magnify (RWST b w s m) (RWST a w s m) b a 
Instance details

Defined in Control.Lens.Zoom

Methods

magnify :: LensLike' (Magnified (RWST b w s m) c) a b -> RWST b w s m c -> RWST a w s m c #

(Monad m, Monoid w) => Magnify (RWST b w s m) (RWST a w s m) b a 
Instance details

Defined in Control.Lens.Zoom

Methods

magnify :: LensLike' (Magnified (RWST b w s m) c) a b -> RWST b w s m c -> RWST a w s m c #

type family Magnified (m :: * -> *) :: * -> * -> * #

Instances
type Magnified (IdentityT m) 
Instance details

Defined in Control.Lens.Zoom

type Magnified ((->) b :: * -> *) 
Instance details

Defined in Control.Lens.Zoom

type Magnified ((->) b :: * -> *) = (Const :: * -> * -> *)
type Magnified (ReaderT b m) 
Instance details

Defined in Control.Lens.Zoom

type Magnified (ReaderT b m) = Effect m
type Magnified (RWST a w s m) 
Instance details

Defined in Control.Lens.Zoom

type Magnified (RWST a w s m) = EffectRWS w s m
type Magnified (RWST a w s m) 
Instance details

Defined in Control.Lens.Zoom

type Magnified (RWST a w s m) = EffectRWS w s m

class Wrapped s where #

Associated Types

type Unwrapped s :: * #

Methods

_Wrapped' :: Iso' s (Unwrapped s) #

Instances
Wrapped Fd 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped Fd :: * #

Wrapped CTimer 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CTimer :: * #

Wrapped CKey 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CKey :: * #

Wrapped CId 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CId :: * #

Wrapped CFsFilCnt 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CFsFilCnt :: * #

Wrapped CFsBlkCnt 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CFsBlkCnt :: * #

Wrapped CClockId 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CClockId :: * #

Wrapped CBlkCnt 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CBlkCnt :: * #

Wrapped CBlkSize 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CBlkSize :: * #

Wrapped CRLim 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CRLim :: * #

Wrapped CTcflag 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CTcflag :: * #

Wrapped CSpeed 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CSpeed :: * #

Wrapped CCc 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CCc :: * #

Wrapped CUid 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CUid :: * #

Wrapped CNlink 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CNlink :: * #

Wrapped CGid 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CGid :: * #

Wrapped CSsize 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CSsize :: * #

Wrapped CPid 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CPid :: * #

Wrapped COff 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped COff :: * #

Wrapped CMode 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CMode :: * #

Wrapped CIno 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CIno :: * #

Wrapped CDev 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CDev :: * #

Wrapped PatternMatchFail 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped PatternMatchFail :: * #

Wrapped RecSelError 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped RecSelError :: * #

Wrapped RecConError 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped RecConError :: * #

Wrapped RecUpdError 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped RecUpdError :: * #

Wrapped NoMethodError 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped NoMethodError :: * #

Wrapped TypeError 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped TypeError :: * #

Wrapped Errno 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped Errno :: * #

Wrapped CompactionFailed 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CompactionFailed :: * #

Wrapped AssertionFailed 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped AssertionFailed :: * #

Wrapped ErrorCall 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped ErrorCall :: * #

Wrapped All 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped All :: * #

Wrapped Any 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped Any :: * #

Wrapped CChar 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CChar :: * #

Wrapped CSChar 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CSChar :: * #

Wrapped CUChar 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CUChar :: * #

Wrapped CShort 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CShort :: * #

Wrapped CUShort 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CUShort :: * #

Wrapped CInt 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CInt :: * #

Wrapped CUInt 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CUInt :: * #

Wrapped CLong 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CLong :: * #

Wrapped CULong 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CULong :: * #

Wrapped CLLong 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CLLong :: * #

Wrapped CULLong 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CULLong :: * #

Wrapped CBool 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CBool :: * #

Wrapped CFloat 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CFloat :: * #

Wrapped CDouble 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CDouble :: * #

Wrapped CPtrdiff 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CPtrdiff :: * #

Wrapped CSize 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CSize :: * #

Wrapped CWchar 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CWchar :: * #

Wrapped CSigAtomic 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CSigAtomic :: * #

Wrapped CClock 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CClock :: * #

Wrapped CTime 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CTime :: * #

Wrapped CUSeconds 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CUSeconds :: * #

Wrapped CSUSeconds 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CSUSeconds :: * #

Wrapped CIntPtr 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CIntPtr :: * #

Wrapped CUIntPtr 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CUIntPtr :: * #

Wrapped CIntMax 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CIntMax :: * #

Wrapped CUIntMax 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped CUIntMax :: * #

Wrapped IntSet 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped IntSet :: * #

Wrapped Name 
Instance details

Defined in Diagrams.Core.Names

Associated Types

type Unwrapped Name :: * #

Methods

_Wrapped' :: Iso' Name (Unwrapped Name) #

Wrapped ColourMap 
Instance details

Defined in Plots.Style

Associated Types

type Unwrapped ColourMap :: * #

Wrapped (Par1 p) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Par1 p) :: * #

Methods

_Wrapped' :: Iso' (Par1 p) (Unwrapped (Par1 p)) #

Wrapped (Identity a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Identity a) :: * #

Wrapped (Min a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Min a) :: * #

Methods

_Wrapped' :: Iso' (Min a) (Unwrapped (Min a)) #

Wrapped (Max a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Max a) :: * #

Methods

_Wrapped' :: Iso' (Max a) (Unwrapped (Max a)) #

Wrapped (First a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (First a) :: * #

Methods

_Wrapped' :: Iso' (First a) (Unwrapped (First a)) #

Wrapped (Last a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Last a) :: * #

Methods

_Wrapped' :: Iso' (Last a) (Unwrapped (Last a)) #

Wrapped (WrappedMonoid a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (WrappedMonoid a) :: * #

Wrapped (Option a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Option a) :: * #

Methods

_Wrapped' :: Iso' (Option a) (Unwrapped (Option a)) #

Wrapped (ZipList a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (ZipList a) :: * #

Methods

_Wrapped' :: Iso' (ZipList a) (Unwrapped (ZipList a)) #

Wrapped (First a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (First a) :: * #

Methods

_Wrapped' :: Iso' (First a) (Unwrapped (First a)) #

Wrapped (Last a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Last a) :: * #

Methods

_Wrapped' :: Iso' (Last a) (Unwrapped (Last a)) #

Wrapped (Dual a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Dual a) :: * #

Methods

_Wrapped' :: Iso' (Dual a) (Unwrapped (Dual a)) #

Wrapped (Endo a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Endo a) :: * #

Methods

_Wrapped' :: Iso' (Endo a) (Unwrapped (Endo a)) #

Wrapped (Sum a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Sum a) :: * #

Methods

_Wrapped' :: Iso' (Sum a) (Unwrapped (Sum a)) #

Wrapped (Product a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Product a) :: * #

Methods

_Wrapped' :: Iso' (Product a) (Unwrapped (Product a)) #

Wrapped (Down a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Down a) :: * #

Methods

_Wrapped' :: Iso' (Down a) (Unwrapped (Down a)) #

Wrapped (NonEmpty a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (NonEmpty a) :: * #

Wrapped (IntMap a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (IntMap a) :: * #

Methods

_Wrapped' :: Iso' (IntMap a) (Unwrapped (IntMap a)) #

Wrapped (Seq a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Seq a) :: * #

Methods

_Wrapped' :: Iso' (Seq a) (Unwrapped (Seq a)) #

Ord a => Wrapped (Set a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Set a) :: * #

Methods

_Wrapped' :: Iso' (Set a) (Unwrapped (Set a)) #

Unbox a => Wrapped (Vector a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Vector a) :: * #

Methods

_Wrapped' :: Iso' (Vector a) (Unwrapped (Vector a)) #

Wrapped (Polar a) 
Instance details

Defined in Diagrams.Coordinates.Polar

Associated Types

type Unwrapped (Polar a) :: * #

Methods

_Wrapped' :: Iso' (Polar a) (Unwrapped (Polar a)) #

Storable a => Wrapped (Vector a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Vector a) :: * #

Methods

_Wrapped' :: Iso' (Vector a) (Unwrapped (Vector a)) #

Wrapped (Vector a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Vector a) :: * #

Methods

_Wrapped' :: Iso' (Vector a) (Unwrapped (Vector a)) #

Prim a => Wrapped (Vector a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Vector a) :: * #

Methods

_Wrapped' :: Iso' (Vector a) (Unwrapped (Vector a)) #

(Hashable a, Eq a) => Wrapped (HashSet a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (HashSet a) :: * #

Methods

_Wrapped' :: Iso' (HashSet a) (Unwrapped (HashSet a)) #

Wrapped (TransInv t) 
Instance details

Defined in Diagrams.Core.Transform

Associated Types

type Unwrapped (TransInv t) :: * #

Methods

_Wrapped' :: Iso' (TransInv t) (Unwrapped (TransInv t)) #

Wrapped (Clip n) 
Instance details

Defined in Diagrams.TwoD.Path

Associated Types

type Unwrapped (Clip n) :: * #

Methods

_Wrapped' :: Iso' (Clip n) (Unwrapped (Clip n)) #

Wrapped (Comparison a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Comparison a) :: * #

Methods

_Wrapped' :: Iso' (Comparison a) (Unwrapped (Comparison a)) #

Wrapped (Equivalence a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Equivalence a) :: * #

Methods

_Wrapped' :: Iso' (Equivalence a) (Unwrapped (Equivalence a)) #

Wrapped (Predicate a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Predicate a) :: * #

Methods

_Wrapped' :: Iso' (Predicate a) (Unwrapped (Predicate a)) #

Ord k => Wrapped (Map k a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Map k a) :: * #

Methods

_Wrapped' :: Iso' (Map k a) (Unwrapped (Map k a)) #

Wrapped (WrappedMonad m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (WrappedMonad m a) :: * #

Wrapped (ArrowMonad m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (ArrowMonad m a) :: * #

Methods

_Wrapped' :: Iso' (ArrowMonad m a) (Unwrapped (ArrowMonad m a)) #

Wrapped (MaybeT m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (MaybeT m a) :: * #

Methods

_Wrapped' :: Iso' (MaybeT m a) (Unwrapped (MaybeT m a)) #

Wrapped (ListT m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (ListT m a) :: * #

Methods

_Wrapped' :: Iso' (ListT m a) (Unwrapped (ListT m a)) #

Wrapped (Trail v n) 
Instance details

Defined in Diagrams.Trail

Associated Types

type Unwrapped (Trail v n) :: * #

Methods

_Wrapped' :: Iso' (Trail v n) (Unwrapped (Trail v n)) #

Wrapped (Path v n) 
Instance details

Defined in Diagrams.Path

Associated Types

type Unwrapped (Path v n) :: * #

Methods

_Wrapped' :: Iso' (Path v n) (Unwrapped (Path v n)) #

Wrapped (Style v n) 
Instance details

Defined in Diagrams.Core.Style

Associated Types

type Unwrapped (Style v n) :: * #

Methods

_Wrapped' :: Iso' (Style v n) (Unwrapped (Style v n)) #

Wrapped (Point f a) 
Instance details

Defined in Linear.Affine

Associated Types

type Unwrapped (Point f a) :: * #

Methods

_Wrapped' :: Iso' (Point f a) (Unwrapped (Point f a)) #

(Hashable k, Eq k) => Wrapped (HashMap k a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (HashMap k a) :: * #

Methods

_Wrapped' :: Iso' (HashMap k a) (Unwrapped (HashMap k a)) #

Wrapped (Envelope v n) 
Instance details

Defined in Diagrams.Core.Envelope

Associated Types

type Unwrapped (Envelope v n) :: * #

Methods

_Wrapped' :: Iso' (Envelope v n) (Unwrapped (Envelope v n)) #

Wrapped (MaybeApply f a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (MaybeApply f a) :: * #

Methods

_Wrapped' :: Iso' (MaybeApply f a) (Unwrapped (MaybeApply f a)) #

Wrapped (SegTree v n) 
Instance details

Defined in Diagrams.Trail

Associated Types

type Unwrapped (SegTree v n) :: * #

Methods

_Wrapped' :: Iso' (SegTree v n) (Unwrapped (SegTree v n)) #

Wrapped (Alt f a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Alt f a) :: * #

Methods

_Wrapped' :: Iso' (Alt f a) (Unwrapped (Alt f a)) #

Wrapped (CatchT m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (CatchT m a) :: * #

Methods

_Wrapped' :: Iso' (CatchT m a) (Unwrapped (CatchT m a)) #

Wrapped (CoiterT w a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (CoiterT w a) :: * #

Methods

_Wrapped' :: Iso' (CoiterT w a) (Unwrapped (CoiterT w a)) #

Wrapped (IterT m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (IterT m a) :: * #

Methods

_Wrapped' :: Iso' (IterT m a) (Unwrapped (IterT m a)) #

Wrapped (Op a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Op a b) :: * #

Methods

_Wrapped' :: Iso' (Op a b) (Unwrapped (Op a b)) #

Wrapped (WrappedApplicative f a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (WrappedApplicative f a) :: * #

Methods

_Wrapped' :: Iso' (WrappedApplicative f a) (Unwrapped (WrappedApplicative f a)) #

Wrapped (Rec1 f p) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Rec1 f p) :: * #

Methods

_Wrapped' :: Iso' (Rec1 f p) (Unwrapped (Rec1 f p)) #

Wrapped (Const a x) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Const a x) :: * #

Methods

_Wrapped' :: Iso' (Const a x) (Unwrapped (Const a x)) #

Wrapped (WrappedArrow a b c) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (WrappedArrow a b c) :: * #

Methods

_Wrapped' :: Iso' (WrappedArrow a b c) (Unwrapped (WrappedArrow a b c)) #

Wrapped (Kleisli m a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Kleisli m a b) :: * #

Methods

_Wrapped' :: Iso' (Kleisli m a b) (Unwrapped (Kleisli m a b)) #

Wrapped (Alt f a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Alt f a) :: * #

Methods

_Wrapped' :: Iso' (Alt f a) (Unwrapped (Alt f a)) #

Wrapped (IdentityT m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (IdentityT m a) :: * #

Methods

_Wrapped' :: Iso' (IdentityT m a) (Unwrapped (IdentityT m a)) #

Wrapped (ExceptT e m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (ExceptT e m a) :: * #

Methods

_Wrapped' :: Iso' (ExceptT e m a) (Unwrapped (ExceptT e m a)) #

Wrapped (ErrorT e m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (ErrorT e m a) :: * #

Methods

_Wrapped' :: Iso' (ErrorT e m a) (Unwrapped (ErrorT e m a)) #

Wrapped (Backwards f a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Backwards f a) :: * #

Methods

_Wrapped' :: Iso' (Backwards f a) (Unwrapped (Backwards f a)) #

Wrapped (WriterT w m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (WriterT w m a) :: * #

Methods

_Wrapped' :: Iso' (WriterT w m a) (Unwrapped (WriterT w m a)) #

Wrapped (StateT s m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (StateT s m a) :: * #

Methods

_Wrapped' :: Iso' (StateT s m a) (Unwrapped (StateT s m a)) #

Wrapped (StateT s m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (StateT s m a) :: * #

Methods

_Wrapped' :: Iso' (StateT s m a) (Unwrapped (StateT s m a)) #

Wrapped (WriterT w m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (WriterT w m a) :: * #

Methods

_Wrapped' :: Iso' (WriterT w m a) (Unwrapped (WriterT w m a)) #

Wrapped (Reverse f a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Reverse f a) :: * #

Methods

_Wrapped' :: Iso' (Reverse f a) (Unwrapped (Reverse f a)) #

Wrapped (Constant a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Constant a b) :: * #

Methods

_Wrapped' :: Iso' (Constant a b) (Unwrapped (Constant a b)) #

Wrapped (Join p a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Join p a) :: * #

Methods

_Wrapped' :: Iso' (Join p a) (Unwrapped (Join p a)) #

Wrapped (Tagged s a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Tagged s a) :: * #

Methods

_Wrapped' :: Iso' (Tagged s a) (Unwrapped (Tagged s a)) #

Wrapped (Trail' Line v n) 
Instance details

Defined in Diagrams.Trail

Associated Types

type Unwrapped (Trail' Line v n) :: * #

Methods

_Wrapped' :: Iso' (Trail' Line v n) (Unwrapped (Trail' Line v n)) #

Wrapped (TracedT m w a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (TracedT m w a) :: * #

Methods

_Wrapped' :: Iso' (TracedT m w a) (Unwrapped (TracedT m w a)) #

Wrapped (ApT f g a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (ApT f g a) :: * #

Methods

_Wrapped' :: Iso' (ApT f g a) (Unwrapped (ApT f g a)) #

Wrapped (CofreeT f w a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (CofreeT f w a) :: * #

Methods

_Wrapped' :: Iso' (CofreeT f w a) (Unwrapped (CofreeT f w a)) #

Wrapped (ComposeCF f g a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (ComposeCF f g a) :: * #

Methods

_Wrapped' :: Iso' (ComposeCF f g a) (Unwrapped (ComposeCF f g a)) #

Wrapped (ComposeFC f g a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (ComposeFC f g a) :: * #

Methods

_Wrapped' :: Iso' (ComposeFC f g a) (Unwrapped (ComposeFC f g a)) #

Wrapped (Compose f g a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Compose f g a) :: * #

Methods

_Wrapped' :: Iso' (Compose f g a) (Unwrapped (Compose f g a)) #

Wrapped (Costar f d c) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Costar f d c) :: * #

Methods

_Wrapped' :: Iso' (Costar f d c) (Unwrapped (Costar f d c)) #

Wrapped (Fix p a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Fix p a) :: * #

Methods

_Wrapped' :: Iso' (Fix p a) (Unwrapped (Fix p a)) #

Wrapped (Forget r a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Forget r a b) :: * #

Methods

_Wrapped' :: Iso' (Forget r a b) (Unwrapped (Forget r a b)) #

Wrapped (FreeT f m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (FreeT f m a) :: * #

Methods

_Wrapped' :: Iso' (FreeT f m a) (Unwrapped (FreeT f m a)) #

Wrapped (Star f d c) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Star f d c) :: * #

Methods

_Wrapped' :: Iso' (Star f d c) (Unwrapped (Star f d c)) #

Wrapped (Static f a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Static f a b) :: * #

Methods

_Wrapped' :: Iso' (Static f a b) (Unwrapped (Static f a b)) #

Wrapped (WrappedArrow p a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (WrappedArrow p a b) :: * #

Methods

_Wrapped' :: Iso' (WrappedArrow p a b) (Unwrapped (WrappedArrow p a b)) #

Wrapped (K1 i c p) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (K1 i c p) :: * #

Methods

_Wrapped' :: Iso' (K1 i c p) (Unwrapped (K1 i c p)) #

Wrapped (ReaderT r m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (ReaderT r m a) :: * #

Methods

_Wrapped' :: Iso' (ReaderT r m a) (Unwrapped (ReaderT r m a)) #

Wrapped (ContT r m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (ContT r m a) :: * #

Methods

_Wrapped' :: Iso' (ContT r m a) (Unwrapped (ContT r m a)) #

Wrapped (QDiagram b v n m) 
Instance details

Defined in Diagrams.Core.Types

Associated Types

type Unwrapped (QDiagram b v n m) :: * #

Methods

_Wrapped' :: Iso' (QDiagram b v n m) (Unwrapped (QDiagram b v n m)) #

Wrapped (SubMap b v n m) 
Instance details

Defined in Diagrams.Core.Types

Associated Types

type Unwrapped (SubMap b v n m) :: * #

Methods

_Wrapped' :: Iso' (SubMap b v n m) (Unwrapped (SubMap b v n m)) #

Wrapped (Cayley f p a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Cayley f p a b) :: * #

Methods

_Wrapped' :: Iso' (Cayley f p a b) (Unwrapped (Cayley f p a b)) #

Wrapped (M1 i c f p) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (M1 i c f p) :: * #

Methods

_Wrapped' :: Iso' (M1 i c f p) (Unwrapped (M1 i c f p)) #

Wrapped ((f :.: g) p) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped ((f :.: g) p) :: * #

Methods

_Wrapped' :: Iso' ((f :.: g) p) (Unwrapped ((f :.: g) p)) #

Wrapped (Compose f g a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Compose f g a) :: * #

Methods

_Wrapped' :: Iso' (Compose f g a) (Unwrapped (Compose f g a)) #

Wrapped (RWST r w s m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (RWST r w s m a) :: * #

Methods

_Wrapped' :: Iso' (RWST r w s m a) (Unwrapped (RWST r w s m a)) #

Wrapped (RWST r w s m a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (RWST r w s m a) :: * #

Methods

_Wrapped' :: Iso' (RWST r w s m a) (Unwrapped (RWST r w s m a)) #

Wrapped (Clown f a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Clown f a b) :: * #

Methods

_Wrapped' :: Iso' (Clown f a b) (Unwrapped (Clown f a b)) #

Wrapped (Flip p a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Flip p a b) :: * #

Methods

_Wrapped' :: Iso' (Flip p a b) (Unwrapped (Flip p a b)) #

Wrapped (Joker g a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Joker g a b) :: * #

Methods

_Wrapped' :: Iso' (Joker g a b) (Unwrapped (Joker g a b)) #

Wrapped (WrappedBifunctor p a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (WrappedBifunctor p a b) :: * #

Methods

_Wrapped' :: Iso' (WrappedBifunctor p a b) (Unwrapped (WrappedBifunctor p a b)) #

Wrapped (Dual k3 a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Dual k3 a b) :: * #

Methods

_Wrapped' :: Iso' (Dual k3 a b) (Unwrapped (Dual k3 a b)) #

Wrapped (Semi m a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Semi m a b) :: * #

Methods

_Wrapped' :: Iso' (Semi m a b) (Unwrapped (Semi m a b)) #

Wrapped (WrappedCategory k3 a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (WrappedCategory k3 a b) :: * #

Methods

_Wrapped' :: Iso' (WrappedCategory k3 a b) (Unwrapped (WrappedCategory k3 a b)) #

Wrapped (Tannen f p a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Tannen f p a b) :: * #

Methods

_Wrapped' :: Iso' (Tannen f p a b) (Unwrapped (Tannen f p a b)) #

Wrapped (Biff p f g a b) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Biff p f g a b) :: * #

Methods

_Wrapped' :: Iso' (Biff p f g a b) (Unwrapped (Biff p f g a b)) #

class (Rewrapped s t, Rewrapped t s) => Rewrapping s t #

Instances
(Rewrapped s t, Rewrapped t s) => Rewrapping s t 
Instance details

Defined in Control.Lens.Wrapped

class Wrapped s => Rewrapped s t #

Instances
Rewrapped Fd t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CTimer t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CKey t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CId t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CFsFilCnt t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CFsBlkCnt t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CClockId t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CBlkCnt t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CBlkSize t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CRLim t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CTcflag t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CSpeed t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CCc t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CUid t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CNlink t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CGid t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CSsize t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CPid t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped COff t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CMode t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CIno t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CDev t 
Instance details

Defined in Control.Lens.Wrapped

t ~ PatternMatchFail => Rewrapped PatternMatchFail t 
Instance details

Defined in Control.Lens.Wrapped

t ~ RecSelError => Rewrapped RecSelError t 
Instance details

Defined in Control.Lens.Wrapped

t ~ RecConError => Rewrapped RecConError t 
Instance details

Defined in Control.Lens.Wrapped

t ~ RecUpdError => Rewrapped RecUpdError t 
Instance details

Defined in Control.Lens.Wrapped

t ~ NoMethodError => Rewrapped NoMethodError t 
Instance details

Defined in Control.Lens.Wrapped

t ~ TypeError => Rewrapped TypeError t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped Errno t 
Instance details

Defined in Control.Lens.Wrapped

t ~ CompactionFailed => Rewrapped CompactionFailed t 
Instance details

Defined in Control.Lens.Wrapped

t ~ AssertionFailed => Rewrapped AssertionFailed t 
Instance details

Defined in Control.Lens.Wrapped

t ~ ErrorCall => Rewrapped ErrorCall t 
Instance details

Defined in Control.Lens.Wrapped

t ~ All => Rewrapped All t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Any => Rewrapped Any t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CChar t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CSChar t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CUChar t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CShort t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CUShort t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CInt t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CUInt t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CLong t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CULong t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CLLong t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CULLong t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CBool t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CFloat t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CDouble t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CPtrdiff t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CSize t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CWchar t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CSigAtomic t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CClock t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CTime t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CUSeconds t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CSUSeconds t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CIntPtr t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CUIntPtr t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CIntMax t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped CUIntMax t 
Instance details

Defined in Control.Lens.Wrapped

t ~ IntSet => Rewrapped IntSet t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped Name Name 
Instance details

Defined in Diagrams.Core.Names

Rewrapped ColourMap ColourMap 
Instance details

Defined in Plots.Style

t ~ Par1 p' => Rewrapped (Par1 p) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Identity b => Rewrapped (Identity a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Min b => Rewrapped (Min a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Max b => Rewrapped (Max a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ First b => Rewrapped (First a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Last b => Rewrapped (Last a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ WrappedMonoid b => Rewrapped (WrappedMonoid a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Option b => Rewrapped (Option a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ ZipList b => Rewrapped (ZipList a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ First b => Rewrapped (First a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Last b => Rewrapped (Last a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Dual b => Rewrapped (Dual a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Endo b => Rewrapped (Endo a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Sum b => Rewrapped (Sum a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Product b => Rewrapped (Product a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Down b => Rewrapped (Down a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ NonEmpty b => Rewrapped (NonEmpty a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ IntMap a' => Rewrapped (IntMap a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Seq a' => Rewrapped (Seq a) t 
Instance details

Defined in Control.Lens.Wrapped

(t ~ Set a', Ord a) => Rewrapped (Set a) t 
Instance details

Defined in Control.Lens.Wrapped

(Unbox a, t ~ Vector a') => Rewrapped (Vector a) t 
Instance details

Defined in Control.Lens.Wrapped

Polar a1 ~ t => Rewrapped (Polar a2) t 
Instance details

Defined in Diagrams.Coordinates.Polar

(Storable a, t ~ Vector a') => Rewrapped (Vector a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Vector a' => Rewrapped (Vector a) t 
Instance details

Defined in Control.Lens.Wrapped

(Prim a, t ~ Vector a') => Rewrapped (Vector a) t 
Instance details

Defined in Control.Lens.Wrapped

(t ~ HashSet a', Hashable a, Eq a) => Rewrapped (HashSet a) t 
Instance details

Defined in Control.Lens.Wrapped

Clip n1 ~ t => Rewrapped (Clip n2) t 
Instance details

Defined in Diagrams.TwoD.Path

t ~ Comparison b => Rewrapped (Comparison a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Equivalence b => Rewrapped (Equivalence a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Predicate b => Rewrapped (Predicate a) t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped (TransInv t) (TransInv t') 
Instance details

Defined in Diagrams.Core.Transform

(t ~ Map k' a', Ord k) => Rewrapped (Map k a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ WrappedMonad m' a' => Rewrapped (WrappedMonad m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ ArrowMonad m' a' => Rewrapped (ArrowMonad m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ MaybeT n b => Rewrapped (MaybeT m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ ListT n b => Rewrapped (ListT m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Point g b => Rewrapped (Point f a) t 
Instance details

Defined in Linear.Affine

(t ~ HashMap k' a', Hashable k, Eq k) => Rewrapped (HashMap k a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ MaybeApply f' a' => Rewrapped (MaybeApply f a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Alt f' a' => Rewrapped (Alt f a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ CatchT m' a' => Rewrapped (CatchT m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ CoiterT w' a' => Rewrapped (CoiterT w a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ IterT m' a' => Rewrapped (IterT m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Op a' b' => Rewrapped (Op a b) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ WrappedApplicative f' a' => Rewrapped (WrappedApplicative f a) t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped (Trail v n) (Trail v' n') 
Instance details

Defined in Diagrams.Trail

Rewrapped (Path v n) (Path v' n') 
Instance details

Defined in Diagrams.Path

Rewrapped (Style v n) (Style v' n') 
Instance details

Defined in Diagrams.Core.Style

Rewrapped (Envelope v n) (Envelope v' n') 
Instance details

Defined in Diagrams.Core.Envelope

Rewrapped (SegTree v n) (SegTree v' n') 
Instance details

Defined in Diagrams.Trail

t ~ Rec1 f' p' => Rewrapped (Rec1 f p) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Const a' x' => Rewrapped (Const a x) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ WrappedArrow a' b' c' => Rewrapped (WrappedArrow a b c) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Kleisli m' a' b' => Rewrapped (Kleisli m a b) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Alt g b => Rewrapped (Alt f a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ IdentityT n b => Rewrapped (IdentityT m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ ExceptT e' m' a' => Rewrapped (ExceptT e m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ ErrorT e' m' a' => Rewrapped (ErrorT e m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Backwards g b => Rewrapped (Backwards f a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ WriterT w' m' a' => Rewrapped (WriterT w m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ StateT s' m' a' => Rewrapped (StateT s m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ StateT s' m' a' => Rewrapped (StateT s m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ WriterT w' m' a' => Rewrapped (WriterT w m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Reverse g b => Rewrapped (Reverse f a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Constant a' b' => Rewrapped (Constant a b) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Join p' a' => Rewrapped (Join p a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Tagged s' a' => Rewrapped (Tagged s a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ TracedT m' w' a' => Rewrapped (TracedT m w a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ ApT f' g' a' => Rewrapped (ApT f g a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ CofreeT f' w' a' => Rewrapped (CofreeT f w a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ ComposeCF f' g' a' => Rewrapped (ComposeCF f g a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ ComposeFC f' g' a' => Rewrapped (ComposeFC f g a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Compose f' g' a' => Rewrapped (Compose f g a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Costar f' d' c' => Rewrapped (Costar f d c) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Fix p' a' => Rewrapped (Fix p a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Forget r' a' b' => Rewrapped (Forget r a b) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ FreeT f' m' a' => Rewrapped (FreeT f m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Star f' d' c' => Rewrapped (Star f d c) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Static f' a' b' => Rewrapped (Static f a b) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ WrappedArrow p' a' b' => Rewrapped (WrappedArrow p a b) t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped (Trail' Line v n) (Trail' Line v' n') 
Instance details

Defined in Diagrams.Trail

t ~ K1 i' c' p' => Rewrapped (K1 i c p) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ ReaderT s n b => Rewrapped (ReaderT r m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ ContT r' m' a' => Rewrapped (ContT r m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Cayley f' p' a' b' => Rewrapped (Cayley f p a b) t 
Instance details

Defined in Control.Lens.Wrapped

Rewrapped (QDiagram b v n m) (QDiagram b' v' n' m') 
Instance details

Defined in Diagrams.Core.Types

Rewrapped (SubMap b v n m) (SubMap b' v' n' m') 
Instance details

Defined in Diagrams.Core.Types

t ~ M1 i' c' f' p' => Rewrapped (M1 i c f p) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ (f' :.: g') p' => Rewrapped ((f :.: g) p) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Compose f' g' a' => Rewrapped (Compose f g a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ RWST r' w' s' m' a' => Rewrapped (RWST r w s m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ RWST r' w' s' m' a' => Rewrapped (RWST r w s m a) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Clown f' a' b' => Rewrapped (Clown f a b) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Flip p' a' b' => Rewrapped (Flip p a b) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Joker g' a' b' => Rewrapped (Joker g a b) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ WrappedBifunctor p' a' b' => Rewrapped (WrappedBifunctor p a b) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Dual k' a' b' => Rewrapped (Dual k6 a b) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Semi m' a' b' => Rewrapped (Semi m a b) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ WrappedCategory k' a' b' => Rewrapped (WrappedCategory k6 a b) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Tannen f' p' a' b' => Rewrapped (Tannen f p a b) t 
Instance details

Defined in Control.Lens.Wrapped

t ~ Biff p' f' g' a' b' => Rewrapped (Biff p f g a b) t 
Instance details

Defined in Control.Lens.Wrapped

type Traversal1' s a = Traversal1 s s a a #

type Traversal1 s t a b = forall (f :: * -> *). Apply f => (a -> f b) -> s -> f t #

type Traversal' s a = Traversal s s a a #

type Traversal s t a b = forall (f :: * -> *). Applicative f => (a -> f b) -> s -> f t #

type Simple (f :: k -> k -> k1 -> k1 -> k2) (s :: k) (a :: k1) = f s s a a #

type Setter' s a = Setter s s a a #

type Setter s t a b = forall (f :: * -> *). Settable f => (a -> f b) -> s -> f t #

type Review t b = forall (p :: * -> * -> *) (f :: * -> *). (Choice p, Bifunctor p, Settable f) => Optic' p f t b #

type Prism' s a = Prism s s a a #

type Prism s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Choice p, Applicative f) => p a (f b) -> p s (f t) #

type Over' (p :: * -> * -> *) (f :: * -> *) s a = Over p f s s a a #

type Over (p :: k -> * -> *) (f :: k1 -> *) s (t :: k1) (a :: k) (b :: k1) = p a (f b) -> s -> f t #

type Optical' (p :: k1 -> k -> *) (q :: k1 -> k -> *) (f :: k1 -> k) (s :: k1) (a :: k1) = Optical p q f s s a a #

type Optical (p :: k2 -> k -> *) (q :: k1 -> k -> *) (f :: k3 -> k) (s :: k1) (t :: k3) (a :: k2) (b :: k3) = p a (f b) -> q s (f t) #

type Optic' (p :: k1 -> k -> *) (f :: k1 -> k) (s :: k1) (a :: k1) = Optic p f s s a a #

type Optic (p :: k1 -> k -> *) (f :: k2 -> k) (s :: k1) (t :: k2) (a :: k1) (b :: k2) = p a (f b) -> p s (f t) #

type LensLike' (f :: * -> *) s a = LensLike f s s a a #

type LensLike (f :: k -> *) s (t :: k) a (b :: k) = (a -> f b) -> s -> f t #

type Lens' s a = Lens s s a a #

type Lens s t a b = forall (f :: * -> *). Functor f => (a -> f b) -> s -> f t #

type Iso' s a = Iso s s a a #

type Iso s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Profunctor p, Functor f) => p a (f b) -> p s (f t) #

type IndexedTraversal1' i s a = IndexedTraversal1 i s s a a #

type IndexedTraversal1 i s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Apply f) => p a (f b) -> s -> f t #

type IndexedTraversal' i s a = IndexedTraversal i s s a a #

type IndexedTraversal i s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Applicative f) => p a (f b) -> s -> f t #

type IndexedSetter' i s a = IndexedSetter i s s a a #

type IndexedSetter i s t a b = forall (f :: * -> *) (p :: * -> * -> *). (Indexable i p, Settable f) => p a (f b) -> s -> f t #

type IndexedLensLike' i (f :: * -> *) s a = IndexedLensLike i f s s a a #

type IndexedLensLike i (f :: k -> *) s (t :: k) a (b :: k) = forall (p :: * -> * -> *). Indexable i p => p a (f b) -> s -> f t #

type IndexedLens' i s a = IndexedLens i s s a a #

type IndexedLens i s t a b = forall (f :: * -> *) (p :: * -> * -> *). (Indexable i p, Functor f) => p a (f b) -> s -> f t #

type IndexedGetter i s a = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Contravariant f, Functor f) => p a (f a) -> s -> f s #

type IndexedFold1 i s a = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Contravariant f, Apply f) => p a (f a) -> s -> f s #

type IndexedFold i s a = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> s -> f s #

type IndexPreservingTraversal1 s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Apply f) => p a (f b) -> p s (f t) #

type IndexPreservingTraversal s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Applicative f) => p a (f b) -> p s (f t) #

type IndexPreservingSetter s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Settable f) => p a (f b) -> p s (f t) #

type IndexPreservingLens s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Functor f) => p a (f b) -> p s (f t) #

type IndexPreservingGetter s a = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Contravariant f, Functor f) => p a (f a) -> p s (f s) #

type IndexPreservingFold1 s a = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Contravariant f, Apply f) => p a (f a) -> p s (f s) #

type IndexPreservingFold s a = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Contravariant f, Applicative f) => p a (f a) -> p s (f s) #

type Getter s a = forall (f :: * -> *). (Contravariant f, Functor f) => (a -> f a) -> s -> f s #

type Fold1 s a = forall (f :: * -> *). (Contravariant f, Apply f) => (a -> f a) -> s -> f s #

type Fold s a = forall (f :: * -> *). (Contravariant f, Applicative f) => (a -> f a) -> s -> f s #

type Equality' (s :: k2) (a :: k2) = Equality s s a a #

type Equality (s :: k1) (t :: k2) (a :: k1) (b :: k2) = forall k3 (p :: k1 -> k3 -> *) (f :: k2 -> k3). p a (f b) -> p s (f t) #

type As (a :: k2) = Equality' a a #

type AReview t b = Optic' (Tagged :: * -> * -> *) Identity t b #

class Field9 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_9 :: Lens s t a b #

Instances
Field9 (a, b, c, d, e, f, g, h, i) (a, b, c, d, e, f, g, h, i') i i' 
Instance details

Defined in Control.Lens.Tuple

Methods

_9 :: Lens (a, b, c, d, e, f, g, h, i) (a, b, c, d, e, f, g, h, i') i i' #

Field9 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f, g, h, i', j) i i' 
Instance details

Defined in Control.Lens.Tuple

Methods

_9 :: Lens (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f, g, h, i', j) i i' #

Field9 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g, h, i', j, kk) i i' 
Instance details

Defined in Control.Lens.Tuple

Methods

_9 :: Lens (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g, h, i', j, kk) i i' #

Field9 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h, i', j, kk, l) i i' 
Instance details

Defined in Control.Lens.Tuple

Methods

_9 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h, i', j, kk, l) i i' #

Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i', j, kk, l, m) i i' 
Instance details

Defined in Control.Lens.Tuple

Methods

_9 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i', j, kk, l, m) i i' #

Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n) i i' 
Instance details

Defined in Control.Lens.Tuple

Methods

_9 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n) i i' #

Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o) i i' 
Instance details

Defined in Control.Lens.Tuple

Methods

_9 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o) i i' #

Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o, p) i i' 
Instance details

Defined in Control.Lens.Tuple

Methods

_9 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o, p) i i' #

Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o, p, q) i i' 
Instance details

Defined in Control.Lens.Tuple

Methods

_9 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o, p, q) i i' #

Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o, p, q, r) i i' 
Instance details

Defined in Control.Lens.Tuple

Methods

_9 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o, p, q, r) i i' #

Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o, p, q, r, s) i i' 
Instance details

Defined in Control.Lens.Tuple

Methods

_9 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o, p, q, r, s) i i' #

class Field8 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_8 :: Lens s t a b #

Instances
Field8 (a, b, c, d, e, f, g, h) (a, b, c, d, e, f, g, h') h h' 
Instance details

Defined in Control.Lens.Tuple

Methods

_8 :: Lens (a, b, c, d, e, f, g, h) (a, b, c, d, e, f, g, h') h h' #

Field8 (a, b, c, d, e, f, g, h, i) (a, b, c, d, e, f, g, h', i) h h' 
Instance details

Defined in Control.Lens.Tuple

Methods

_8 :: Lens (a, b, c, d, e, f, g, h, i) (a, b, c, d, e, f, g, h', i) h h' #

Field8 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f, g, h', i, j) h h' 
Instance details

Defined in Control.Lens.Tuple

Methods

_8 :: Lens (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f, g, h', i, j) h h' #

Field8 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g, h', i, j, kk) h h' 
Instance details

Defined in Control.Lens.Tuple

Methods

_8 :: Lens (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g, h', i, j, kk) h h' #

Field8 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h', i, j, kk, l) h h' 
Instance details

Defined in Control.Lens.Tuple

Methods

_8 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h', i, j, kk, l) h h' #

Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h', i, j, kk, l, m) h h' 
Instance details

Defined in Control.Lens.Tuple

Methods

_8 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h', i, j, kk, l, m) h h' #

Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n) h h' 
Instance details

Defined in Control.Lens.Tuple

Methods

_8 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n) h h' #

Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o) h h' 
Instance details

Defined in Control.Lens.Tuple

Methods

_8 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o) h h' #

Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o, p) h h' 
Instance details

Defined in Control.Lens.Tuple

Methods

_8 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o, p) h h' #

Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o, p, q) h h' 
Instance details

Defined in Control.Lens.Tuple

Methods

_8 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o, p, q) h h' #

Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o, p, q, r) h h' 
Instance details

Defined in Control.Lens.Tuple

Methods

_8 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o, p, q, r) h h' #

Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o, p, q, r, s) h h' 
Instance details

Defined in Control.Lens.Tuple

Methods

_8 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o, p, q, r, s) h h' #

class Field7 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_7 :: Lens s t a b #

Instances
Field7 (a, b, c, d, e, f, g) (a, b, c, d, e, f, g') g g' 
Instance details

Defined in Control.Lens.Tuple

Methods

_7 :: Lens (a, b, c, d, e, f, g) (a, b, c, d, e, f, g') g g' #

Field7 (a, b, c, d, e, f, g, h) (a, b, c, d, e, f, g', h) g g' 
Instance details

Defined in Control.Lens.Tuple

Methods

_7 :: Lens (a, b, c, d, e, f, g, h) (a, b, c, d, e, f, g', h) g g' #

Field7 (a, b, c, d, e, f, g, h, i) (a, b, c, d, e, f, g', h, i) g g' 
Instance details

Defined in Control.Lens.Tuple

Methods

_7 :: Lens (a, b, c, d, e, f, g, h, i) (a, b, c, d, e, f, g', h, i) g g' #

Field7 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f, g', h, i, j) g g' 
Instance details

Defined in Control.Lens.Tuple

Methods

_7 :: Lens (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f, g', h, i, j) g g' #

Field7 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g', h, i, j, kk) g g' 
Instance details

Defined in Control.Lens.Tuple

Methods

_7 :: Lens (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g', h, i, j, kk) g g' #

Field7 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g', h, i, j, kk, l) g g' 
Instance details

Defined in Control.Lens.Tuple

Methods

_7 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g', h, i, j, kk, l) g g' #

Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g', h, i, j, kk, l, m) g g' 
Instance details

Defined in Control.Lens.Tuple

Methods

_7 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g', h, i, j, kk, l, m) g g' #

Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n) g g' 
Instance details

Defined in Control.Lens.Tuple

Methods

_7 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n) g g' #

Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o) g g' 
Instance details

Defined in Control.Lens.Tuple

Methods

_7 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o) g g' #

Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o, p) g g' 
Instance details

Defined in Control.Lens.Tuple

Methods

_7 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o, p) g g' #

Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o, p, q) g g' 
Instance details

Defined in Control.Lens.Tuple

Methods

_7 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o, p, q) g g' #

Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o, p, q, r) g g' 
Instance details

Defined in Control.Lens.Tuple

Methods

_7 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o, p, q, r) g g' #

Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o, p, q, r, s) g g' 
Instance details

Defined in Control.Lens.Tuple

Methods

_7 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o, p, q, r, s) g g' #

class Field6 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_6 :: Lens s t a b #

Instances
Field6 (a, b, c, d, e, f) (a, b, c, d, e, f') f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f) (a, b, c, d, e, f') f f' #

Field6 (a, b, c, d, e, f, g) (a, b, c, d, e, f', g) f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f, g) (a, b, c, d, e, f', g) f f' #

Field6 (a, b, c, d, e, f, g, h) (a, b, c, d, e, f', g, h) f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f, g, h) (a, b, c, d, e, f', g, h) f f' #

Field6 (a, b, c, d, e, f, g, h, i) (a, b, c, d, e, f', g, h, i) f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f, g, h, i) (a, b, c, d, e, f', g, h, i) f f' #

Field6 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f', g, h, i, j) f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f', g, h, i, j) f f' #

Field6 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f', g, h, i, j, kk) f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f', g, h, i, j, kk) f f' #

Field6 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f', g, h, i, j, kk, l) f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f', g, h, i, j, kk, l) f f' #

Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f', g, h, i, j, kk, l, m) f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f', g, h, i, j, kk, l, m) f f' #

Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n) f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n) f f' #

Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o) f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o) f f' #

Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o, p) f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o, p) f f' #

Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o, p, q) f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o, p, q) f f' #

Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o, p, q, r) f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o, p, q, r) f f' #

Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o, p, q, r, s) f f' 
Instance details

Defined in Control.Lens.Tuple

Methods

_6 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o, p, q, r, s) f f' #

class Field5 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_5 :: Lens s t a b #

Instances
Field5 (a, b, c, d, e) (a, b, c, d, e') e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e) (a, b, c, d, e') e e' #

Field5 (a, b, c, d, e, f) (a, b, c, d, e', f) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f) (a, b, c, d, e', f) e e' #

Field5 (a, b, c, d, e, f, g) (a, b, c, d, e', f, g) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f, g) (a, b, c, d, e', f, g) e e' #

Field5 (a, b, c, d, e, f, g, h) (a, b, c, d, e', f, g, h) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f, g, h) (a, b, c, d, e', f, g, h) e e' #

Field5 (a, b, c, d, e, f, g, h, i) (a, b, c, d, e', f, g, h, i) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f, g, h, i) (a, b, c, d, e', f, g, h, i) e e' #

Field5 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e', f, g, h, i, j) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e', f, g, h, i, j) e e' #

Field5 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e', f, g, h, i, j, kk) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e', f, g, h, i, j, kk) e e' #

Field5 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e', f, g, h, i, j, kk, l) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e', f, g, h, i, j, kk, l) e e' #

Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e', f, g, h, i, j, kk, l, m) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e', f, g, h, i, j, kk, l, m) e e' #

Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n) e e' #

Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o) e e' #

Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o, p) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o, p) e e' #

Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o, p, q) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o, p, q) e e' #

Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o, p, q, r) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o, p, q, r) e e' #

Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o, p, q, r, s) e e' 
Instance details

Defined in Control.Lens.Tuple

Methods

_5 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o, p, q, r, s) e e' #

class Field4 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_4 :: Lens s t a b #

Instances
Field4 (a, b, c, d) (a, b, c, d') d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d) (a, b, c, d') d d' #

Field4 (a, b, c, d, e) (a, b, c, d', e) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e) (a, b, c, d', e) d d' #

Field4 (a, b, c, d, e, f) (a, b, c, d', e, f) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f) (a, b, c, d', e, f) d d' #

Field4 (a, b, c, d, e, f, g) (a, b, c, d', e, f, g) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f, g) (a, b, c, d', e, f, g) d d' #

Field4 (a, b, c, d, e, f, g, h) (a, b, c, d', e, f, g, h) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f, g, h) (a, b, c, d', e, f, g, h) d d' #

Field4 (a, b, c, d, e, f, g, h, i) (a, b, c, d', e, f, g, h, i) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f, g, h, i) (a, b, c, d', e, f, g, h, i) d d' #

Field4 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d', e, f, g, h, i, j) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f, g, h, i, j) (a, b, c, d', e, f, g, h, i, j) d d' #

Field4 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d', e, f, g, h, i, j, kk) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d', e, f, g, h, i, j, kk) d d' #

Field4 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d', e, f, g, h, i, j, kk, l) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d', e, f, g, h, i, j, kk, l) d d' #

Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d', e, f, g, h, i, j, kk, l, m) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d', e, f, g, h, i, j, kk, l, m) d d' #

Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n) d d' #

Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o) d d' #

Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o, p) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o, p) d d' #

Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o, p, q) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o, p, q) d d' #

Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o, p, q, r) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o, p, q, r) d d' #

Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) d d' 
Instance details

Defined in Control.Lens.Tuple

Methods

_4 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) d d' #

class Field3 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_3 :: Lens s t a b #

Instances
Field3 (V3 a) (V3 a) a a 
Instance details

Defined in Linear.V3

Methods

_3 :: Lens (V3 a) (V3 a) a a #

Field3 (a, b, c) (a, b, c') c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c) (a, b, c') c c' #

Field3 (a, b, c, d) (a, b, c', d) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d) (a, b, c', d) c c' #

Field3 (a, b, c, d, e) (a, b, c', d, e) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e) (a, b, c', d, e) c c' #

Field3 (a, b, c, d, e, f) (a, b, c', d, e, f) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f) (a, b, c', d, e, f) c c' #

Field3 (a, b, c, d, e, f, g) (a, b, c', d, e, f, g) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f, g) (a, b, c', d, e, f, g) c c' #

Field3 (a, b, c, d, e, f, g, h) (a, b, c', d, e, f, g, h) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f, g, h) (a, b, c', d, e, f, g, h) c c' #

Field3 (a, b, c, d, e, f, g, h, i) (a, b, c', d, e, f, g, h, i) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f, g, h, i) (a, b, c', d, e, f, g, h, i) c c' #

Field3 (a, b, c, d, e, f, g, h, i, j) (a, b, c', d, e, f, g, h, i, j) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f, g, h, i, j) (a, b, c', d, e, f, g, h, i, j) c c' #

Field3 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c', d, e, f, g, h, i, j, kk) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c', d, e, f, g, h, i, j, kk) c c' #

Field3 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c', d, e, f, g, h, i, j, kk, l) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c', d, e, f, g, h, i, j, kk, l) c c' #

Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c', d, e, f, g, h, i, j, kk, l, m) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c', d, e, f, g, h, i, j, kk, l, m) c c' #

Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n) c c' #

Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o) c c' #

Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o, p) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o, p) c c' #

Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o, p, q) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o, p, q) c c' #

Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) c c' #

Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) c c' 
Instance details

Defined in Control.Lens.Tuple

Methods

_3 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) c c' #

class Field2 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_2 :: Lens s t a b #

Instances
Field2 (V3 a) (V3 a) a a 
Instance details

Defined in Linear.V3

Methods

_2 :: Lens (V3 a) (V3 a) a a #

Field2 (V2 a) (V2 a) a a 
Instance details

Defined in Linear.V2

Methods

_2 :: Lens (V2 a) (V2 a) a a #

Field2 (a, b) (a, b') b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b) (a, b') b b' #

Field2 (a, b, c) (a, b', c) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c) (a, b', c) b b' #

Field2 (a, b, c, d) (a, b', c, d) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d) (a, b', c, d) b b' #

Field2 ((f :*: g) p) ((f :*: g') p) (g p) (g' p) 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens ((f :*: g) p) ((f :*: g') p) (g p) (g' p) #

Field2 (Product f g a) (Product f g' a) (g a) (g' a) 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (Product f g a) (Product f g' a) (g a) (g' a) #

Field2 (a, b, c, d, e) (a, b', c, d, e) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e) (a, b', c, d, e) b b' #

Field2 (a, b, c, d, e, f) (a, b', c, d, e, f) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f) (a, b', c, d, e, f) b b' #

Field2 (a, b, c, d, e, f, g) (a, b', c, d, e, f, g) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f, g) (a, b', c, d, e, f, g) b b' #

Field2 (a, b, c, d, e, f, g, h) (a, b', c, d, e, f, g, h) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f, g, h) (a, b', c, d, e, f, g, h) b b' #

Field2 (a, b, c, d, e, f, g, h, i) (a, b', c, d, e, f, g, h, i) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f, g, h, i) (a, b', c, d, e, f, g, h, i) b b' #

Field2 (a, b, c, d, e, f, g, h, i, j) (a, b', c, d, e, f, g, h, i, j) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f, g, h, i, j) (a, b', c, d, e, f, g, h, i, j) b b' #

Field2 (a, b, c, d, e, f, g, h, i, j, kk) (a, b', c, d, e, f, g, h, i, j, kk) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f, g, h, i, j, kk) (a, b', c, d, e, f, g, h, i, j, kk) b b' #

Field2 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b', c, d, e, f, g, h, i, j, kk, l) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b', c, d, e, f, g, h, i, j, kk, l) b b' #

Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b', c, d, e, f, g, h, i, j, kk, l, m) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b', c, d, e, f, g, h, i, j, kk, l, m) b b' #

Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n) b b' #

Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o) b b' #

Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o, p) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o, p) b b' #

Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) b b' #

Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) b b' #

Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) b b' 
Instance details

Defined in Control.Lens.Tuple

Methods

_2 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) b b' #

class Field19 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_19 :: Lens s t a b #

Instances
Field19 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s') s s' 
Instance details

Defined in Control.Lens.Tuple

Methods

_19 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s') s s' #

class Field18 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_18 :: Lens s t a b #

Instances
Field18 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r') r r' 
Instance details

Defined in Control.Lens.Tuple

Methods

_18 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r') r r' #

Field18 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r', s) r r' 
Instance details

Defined in Control.Lens.Tuple

Methods

_18 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r', s) r r' #

class Field17 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_17 :: Lens s t a b #

Instances
Field17 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q') q q' 
Instance details

Defined in Control.Lens.Tuple

Methods

_17 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q') q q' #

Field17 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q', r) q q' 
Instance details

Defined in Control.Lens.Tuple

Methods

_17 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q', r) q q' #

Field17 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q', r, s) q q' 
Instance details

Defined in Control.Lens.Tuple

Methods

_17 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q', r, s) q q' #

class Field16 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_16 :: Lens s t a b #

Instances
Field16 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p') p p' 
Instance details

Defined in Control.Lens.Tuple

Methods

_16 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p') p p' #

Field16 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p', q) p p' 
Instance details

Defined in Control.Lens.Tuple

Methods

_16 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p', q) p p' #

Field16 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p', q, r) p p' 
Instance details

Defined in Control.Lens.Tuple

Methods

_16 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p', q, r) p p' #

Field16 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p', q, r, s) p p' 
Instance details

Defined in Control.Lens.Tuple

Methods

_16 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p', q, r, s) p p' #

class Field15 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_15 :: Lens s t a b #

Instances
Field15 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o') o o' 
Instance details

Defined in Control.Lens.Tuple

Methods

_15 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o') o o' #

Field15 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o', p) o o' 
Instance details

Defined in Control.Lens.Tuple

Methods

_15 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o', p) o o' #

Field15 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o', p, q) o o' 
Instance details

Defined in Control.Lens.Tuple

Methods

_15 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o', p, q) o o' #

Field15 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o', p, q, r) o o' 
Instance details

Defined in Control.Lens.Tuple

Methods

_15 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o', p, q, r) o o' #

Field15 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o', p, q, r, s) o o' 
Instance details

Defined in Control.Lens.Tuple

Methods

_15 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o', p, q, r, s) o o' #

class Field14 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_14 :: Lens s t a b #

Instances
Field14 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n') n n' 
Instance details

Defined in Control.Lens.Tuple

Methods

_14 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n') n n' #

Field14 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o) n n' 
Instance details

Defined in Control.Lens.Tuple

Methods

_14 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o) n n' #

Field14 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o, p) n n' 
Instance details

Defined in Control.Lens.Tuple

Methods

_14 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o, p) n n' #

Field14 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o, p, q) n n' 
Instance details

Defined in Control.Lens.Tuple

Methods

_14 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o, p, q) n n' #

Field14 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o, p, q, r) n n' 
Instance details

Defined in Control.Lens.Tuple

Methods

_14 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o, p, q, r) n n' #

Field14 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o, p, q, r, s) n n' 
Instance details

Defined in Control.Lens.Tuple

Methods

_14 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o, p, q, r, s) n n' #

class Field13 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_13 :: Lens s t a b #

Instances
Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i, j, kk, l, m') m m' 
Instance details

Defined in Control.Lens.Tuple

Methods

_13 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i, j, kk, l, m') m m' #

Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n) m m' 
Instance details

Defined in Control.Lens.Tuple

Methods

_13 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n) m m' #

Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o) m m' 
Instance details

Defined in Control.Lens.Tuple

Methods

_13 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o) m m' #

Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o, p) m m' 
Instance details

Defined in Control.Lens.Tuple

Methods

_13 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o, p) m m' #

Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o, p, q) m m' 
Instance details

Defined in Control.Lens.Tuple

Methods

_13 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o, p, q) m m' #

Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o, p, q, r) m m' 
Instance details

Defined in Control.Lens.Tuple

Methods

_13 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o, p, q, r) m m' #

Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o, p, q, r, s) m m' 
Instance details

Defined in Control.Lens.Tuple

Methods

_13 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o, p, q, r, s) m m' #

class Field12 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_12 :: Lens s t a b #

Instances
Field12 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h, i, j, kk, l') l l' 
Instance details

Defined in Control.Lens.Tuple

Methods

_12 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h, i, j, kk, l') l l' #

Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i, j, kk, l', m) l l' 
Instance details

Defined in Control.Lens.Tuple

Methods

_12 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i, j, kk, l', m) l l' #

Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n) l l' 
Instance details

Defined in Control.Lens.Tuple

Methods

_12 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n) l l' #

Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o) l l' 
Instance details

Defined in Control.Lens.Tuple

Methods

_12 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o) l l' #

Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o, p) l l' 
Instance details

Defined in Control.Lens.Tuple

Methods

_12 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o, p) l l' #

Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o, p, q) l l' 
Instance details

Defined in Control.Lens.Tuple

Methods

_12 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o, p, q) l l' #

Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o, p, q, r) l l' 
Instance details

Defined in Control.Lens.Tuple

Methods

_12 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o, p, q, r) l l' #

Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o, p, q, r, s) l l' 
Instance details

Defined in Control.Lens.Tuple

Methods

_12 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o, p, q, r, s) l l' #

class Field11 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_11 :: Lens s t a b #

Instances
Field11 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g, h, i, j, kk') kk kk' 
Instance details

Defined in Control.Lens.Tuple

Methods

_11 :: Lens (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g, h, i, j, kk') kk kk' #

Field11 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h, i, j, kk', l) kk kk' 
Instance details

Defined in Control.Lens.Tuple

Methods

_11 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h, i, j, kk', l) kk kk' #

Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i, j, kk', l, m) kk kk' 
Instance details

Defined in Control.Lens.Tuple

Methods

_11 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i, j, kk', l, m) kk kk' #

Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n) kk kk' 
Instance details

Defined in Control.Lens.Tuple

Methods

_11 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n) kk kk' #

Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o) kk kk' 
Instance details

Defined in Control.Lens.Tuple

Methods

_11 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o) kk kk' #

Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o, p) kk kk' 
Instance details

Defined in Control.Lens.Tuple

Methods

_11 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o, p) kk kk' #

Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o, p, q) kk kk' 
Instance details

Defined in Control.Lens.Tuple

Methods

_11 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o, p, q) kk kk' #

Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o, p, q, r) kk kk' 
Instance details

Defined in Control.Lens.Tuple

Methods

_11 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o, p, q, r) kk kk' #

Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o, p, q, r, s) kk kk' 
Instance details

Defined in Control.Lens.Tuple

Methods

_11 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o, p, q, r, s) kk kk' #

class Field10 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_10 :: Lens s t a b #

Instances
Field10 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f, g, h, i, j') j j' 
Instance details

Defined in Control.Lens.Tuple

Methods

_10 :: Lens (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f, g, h, i, j') j j' #

Field10 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g, h, i, j', kk) j j' 
Instance details

Defined in Control.Lens.Tuple

Methods

_10 :: Lens (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g, h, i, j', kk) j j' #

Field10 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h, i, j', kk, l) j j' 
Instance details

Defined in Control.Lens.Tuple

Methods

_10 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h, i, j', kk, l) j j' #

Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i, j', kk, l, m) j j' 
Instance details

Defined in Control.Lens.Tuple

Methods

_10 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i, j', kk, l, m) j j' #

Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n) j j' 
Instance details

Defined in Control.Lens.Tuple

Methods

_10 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n) j j' #

Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o) j j' 
Instance details

Defined in Control.Lens.Tuple

Methods

_10 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o) j j' #

Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o, p) j j' 
Instance details

Defined in Control.Lens.Tuple

Methods

_10 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o, p) j j' #

Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o, p, q) j j' 
Instance details

Defined in Control.Lens.Tuple

Methods

_10 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o, p, q) j j' #

Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o, p, q, r) j j' 
Instance details

Defined in Control.Lens.Tuple

Methods

_10 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o, p, q, r) j j' #

Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o, p, q, r, s) j j' 
Instance details

Defined in Control.Lens.Tuple

Methods

_10 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o, p, q, r, s) j j' #

class Field1 s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

_1 :: Lens s t a b #

Instances
Field1 (Identity a) (Identity b) a b 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (Identity a) (Identity b) a b #

Field1 (V3 a) (V3 a) a a 
Instance details

Defined in Linear.V3

Methods

_1 :: Lens (V3 a) (V3 a) a a #

Field1 (V2 a) (V2 a) a a 
Instance details

Defined in Linear.V2

Methods

_1 :: Lens (V2 a) (V2 a) a a #

Field1 (V1 a) (V1 b) a b 
Instance details

Defined in Linear.V1

Methods

_1 :: Lens (V1 a) (V1 b) a b #

Field1 (a, b) (a', b) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b) (a', b) a a' #

Field1 (a, b, c) (a', b, c) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c) (a', b, c) a a' #

Field1 (a, b, c, d) (a', b, c, d) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d) (a', b, c, d) a a' #

Field1 ((f :*: g) p) ((f' :*: g) p) (f p) (f' p) 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens ((f :*: g) p) ((f' :*: g) p) (f p) (f' p) #

Field1 (Product f g a) (Product f' g a) (f a) (f' a) 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (Product f g a) (Product f' g a) (f a) (f' a) #

Field1 (a, b, c, d, e) (a', b, c, d, e) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e) (a', b, c, d, e) a a' #

Field1 (a, b, c, d, e, f) (a', b, c, d, e, f) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f) (a', b, c, d, e, f) a a' #

Field1 (a, b, c, d, e, f, g) (a', b, c, d, e, f, g) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f, g) (a', b, c, d, e, f, g) a a' #

Field1 (a, b, c, d, e, f, g, h) (a', b, c, d, e, f, g, h) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f, g, h) (a', b, c, d, e, f, g, h) a a' #

Field1 (a, b, c, d, e, f, g, h, i) (a', b, c, d, e, f, g, h, i) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f, g, h, i) (a', b, c, d, e, f, g, h, i) a a' #

Field1 (a, b, c, d, e, f, g, h, i, j) (a', b, c, d, e, f, g, h, i, j) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f, g, h, i, j) (a', b, c, d, e, f, g, h, i, j) a a' #

Field1 (a, b, c, d, e, f, g, h, i, j, kk) (a', b, c, d, e, f, g, h, i, j, kk) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f, g, h, i, j, kk) (a', b, c, d, e, f, g, h, i, j, kk) a a' #

Field1 (a, b, c, d, e, f, g, h, i, j, kk, l) (a', b, c, d, e, f, g, h, i, j, kk, l) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l) (a', b, c, d, e, f, g, h, i, j, kk, l) a a' #

Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a', b, c, d, e, f, g, h, i, j, kk, l, m) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a', b, c, d, e, f, g, h, i, j, kk, l, m) a a' #

Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n) a a' #

Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o) a a' #

Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) a a' #

Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) a a' #

Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) a a' #

Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) a a' 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) a a' #

type Traversing1' (p :: * -> * -> *) (f :: * -> *) s a = Traversing1 p f s s a a #

type Traversing1 (p :: * -> * -> *) (f :: * -> *) s t a b = Over p (BazaarT1 p f a b) s t a b #

type Traversing' (p :: * -> * -> *) (f :: * -> *) s a = Traversing p f s s a a #

type Traversing (p :: * -> * -> *) (f :: * -> *) s t a b = Over p (BazaarT p f a b) s t a b #

class Ord k => TraverseMin k (m :: * -> *) | m -> k where #

Minimal complete definition

traverseMin

Methods

traverseMin :: (Indexable k p, Applicative f) => p v (f v) -> m v -> f (m v) #

Instances
TraverseMin Int IntMap 
Instance details

Defined in Control.Lens.Traversal

Methods

traverseMin :: (Indexable Int p, Applicative f) => p v (f v) -> IntMap v -> f (IntMap v) #

Ord k => TraverseMin k (Map k) 
Instance details

Defined in Control.Lens.Traversal

Methods

traverseMin :: (Indexable k p, Applicative f) => p v (f v) -> Map k v -> f (Map k v) #

class Ord k => TraverseMax k (m :: * -> *) | m -> k where #

Minimal complete definition

traverseMax

Methods

traverseMax :: (Indexable k p, Applicative f) => p v (f v) -> m v -> f (m v) #

Instances
TraverseMax Int IntMap 
Instance details

Defined in Control.Lens.Traversal

Methods

traverseMax :: (Indexable Int p, Applicative f) => p v (f v) -> IntMap v -> f (IntMap v) #

Ord k => TraverseMax k (Map k) 
Instance details

Defined in Control.Lens.Traversal

Methods

traverseMax :: (Indexable k p, Applicative f) => p v (f v) -> Map k v -> f (Map k v) #

type AnIndexedTraversal1 i s t a b = Over (Indexed i) (Bazaar1 (Indexed i) a b) s t a b #

type AnIndexedTraversal i s t a b = Over (Indexed i) (Bazaar (Indexed i) a b) s t a b #

type ATraversal1' s a = ATraversal1 s s a a #

type ATraversal1 s t a b = LensLike (Bazaar1 ((->) :: * -> * -> *) a b) s t a b #

type ATraversal' s a = ATraversal s s a a #

type ATraversal s t a b = LensLike (Bazaar ((->) :: * -> * -> *) a b) s t a b #

type Setting' (p :: * -> * -> *) s a = Setting p s s a a #

type Setting (p :: * -> * -> *) s t a b = p a (Identity b) -> s -> Identity t #

type AnIndexedSetter' i s a = AnIndexedSetter i s s a a #

type AnIndexedSetter i s t a b = Indexed i a (Identity b) -> s -> Identity t #

type ASetter' s a = ASetter s s a a #

type ASetter s t a b = (a -> Identity b) -> s -> Identity t #

newtype ReifiedTraversal s t a b #

Constructors

Traversal 

Fields

type ReifiedSetter' s a = ReifiedSetter s s a a #

newtype ReifiedSetter s t a b #

Constructors

Setter 

Fields

type ReifiedPrism' s a = ReifiedPrism s s a a #

newtype ReifiedPrism s t a b #

Constructors

Prism 

Fields

type ReifiedLens' s a = ReifiedLens s s a a #

newtype ReifiedLens s t a b #

Constructors

Lens 

Fields

type ReifiedIso' s a = ReifiedIso s s a a #

newtype ReifiedIso s t a b #

Constructors

Iso 

Fields

newtype ReifiedIndexedTraversal i s t a b #

Constructors

IndexedTraversal 

newtype ReifiedIndexedSetter i s t a b #

Constructors

IndexedSetter 

Fields

newtype ReifiedIndexedLens i s t a b #

Constructors

IndexedLens 

Fields

newtype ReifiedIndexedGetter i s a #

Constructors

IndexedGetter 
Instances
Profunctor (ReifiedIndexedGetter i) 
Instance details

Defined in Control.Lens.Reified

Methods

dimap :: (a -> b) -> (c -> d) -> ReifiedIndexedGetter i b c -> ReifiedIndexedGetter i a d #

lmap :: (a -> b) -> ReifiedIndexedGetter i b c -> ReifiedIndexedGetter i a c #

rmap :: (b -> c) -> ReifiedIndexedGetter i a b -> ReifiedIndexedGetter i a c #

(#.) :: Coercible c b => (b -> c) -> ReifiedIndexedGetter i a b -> ReifiedIndexedGetter i a c

(.#) :: Coercible b a => ReifiedIndexedGetter i b c -> (a -> b) -> ReifiedIndexedGetter i a c

Representable (ReifiedIndexedGetter i) 
Instance details

Defined in Control.Lens.Reified

Associated Types

type Rep (ReifiedIndexedGetter i) :: * -> *

Methods

tabulate :: (d -> Rep (ReifiedIndexedGetter i) c) -> ReifiedIndexedGetter i d c

Strong (ReifiedIndexedGetter i) 
Instance details

Defined in Control.Lens.Reified

Methods

first' :: ReifiedIndexedGetter i a b -> ReifiedIndexedGetter i (a, c) (b, c)

second' :: ReifiedIndexedGetter i a b -> ReifiedIndexedGetter i (c, a) (c, b)

Sieve (ReifiedIndexedGetter i) ((,) i) 
Instance details

Defined in Control.Lens.Reified

Methods

sieve :: ReifiedIndexedGetter i a b -> a -> (i, b)

Functor (ReifiedIndexedGetter i s) 
Instance details

Defined in Control.Lens.Reified

Methods

fmap :: (a -> b) -> ReifiedIndexedGetter i s a -> ReifiedIndexedGetter i s b #

(<$) :: a -> ReifiedIndexedGetter i s b -> ReifiedIndexedGetter i s a #

Semigroup i => Apply (ReifiedIndexedGetter i s) 
Instance details

Defined in Control.Lens.Reified

type Rep (ReifiedIndexedGetter i) 
Instance details

Defined in Control.Lens.Reified

type Rep (ReifiedIndexedGetter i) = (,) i

newtype ReifiedIndexedFold i s a #

Constructors

IndexedFold 

Fields

Instances
Profunctor (ReifiedIndexedFold i) 
Instance details

Defined in Control.Lens.Reified

Methods

dimap :: (a -> b) -> (c -> d) -> ReifiedIndexedFold i b c -> ReifiedIndexedFold i a d #

lmap :: (a -> b) -> ReifiedIndexedFold i b c -> ReifiedIndexedFold i a c #

rmap :: (b -> c) -> ReifiedIndexedFold i a b -> ReifiedIndexedFold i a c #

(#.) :: Coercible c b => (b -> c) -> ReifiedIndexedFold i a b -> ReifiedIndexedFold i a c

(.#) :: Coercible b a => ReifiedIndexedFold i b c -> (a -> b) -> ReifiedIndexedFold i a c

Representable (ReifiedIndexedFold i) 
Instance details

Defined in Control.Lens.Reified

Associated Types

type Rep (ReifiedIndexedFold i) :: * -> *

Methods

tabulate :: (d -> Rep (ReifiedIndexedFold i) c) -> ReifiedIndexedFold i d c

Strong (ReifiedIndexedFold i) 
Instance details

Defined in Control.Lens.Reified

Methods

first' :: ReifiedIndexedFold i a b -> ReifiedIndexedFold i (a, c) (b, c)

second' :: ReifiedIndexedFold i a b -> ReifiedIndexedFold i (c, a) (c, b)

Sieve (ReifiedIndexedFold i) (Compose [] ((,) i)) 
Instance details

Defined in Control.Lens.Reified

Methods

sieve :: ReifiedIndexedFold i a b -> a -> Compose [] ((,) i) b

Functor (ReifiedIndexedFold i s) 
Instance details

Defined in Control.Lens.Reified

Methods

fmap :: (a -> b) -> ReifiedIndexedFold i s a -> ReifiedIndexedFold i s b #

(<$) :: a -> ReifiedIndexedFold i s b -> ReifiedIndexedFold i s a #

Alt (ReifiedIndexedFold i s) 
Instance details

Defined in Control.Lens.Reified

Plus (ReifiedIndexedFold i s) 
Instance details

Defined in Control.Lens.Reified

Methods

zero :: ReifiedIndexedFold i s a

Semigroup (ReifiedIndexedFold i s a) 
Instance details

Defined in Control.Lens.Reified

Monoid (ReifiedIndexedFold i s a) 
Instance details

Defined in Control.Lens.Reified

type Rep (ReifiedIndexedFold i) 
Instance details

Defined in Control.Lens.Reified

type Rep (ReifiedIndexedFold i) = Compose [] ((,) i)

newtype ReifiedGetter s a #

Constructors

Getter 

Fields

Instances
Profunctor ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

dimap :: (a -> b) -> (c -> d) -> ReifiedGetter b c -> ReifiedGetter a d #

lmap :: (a -> b) -> ReifiedGetter b c -> ReifiedGetter a c #

rmap :: (b -> c) -> ReifiedGetter a b -> ReifiedGetter a c #

(#.) :: Coercible c b => (b -> c) -> ReifiedGetter a b -> ReifiedGetter a c

(.#) :: Coercible b a => ReifiedGetter b c -> (a -> b) -> ReifiedGetter a c

Choice ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

left' :: ReifiedGetter a b -> ReifiedGetter (Either a c) (Either b c) #

right' :: ReifiedGetter a b -> ReifiedGetter (Either c a) (Either c b) #

Conjoined ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

distrib :: Functor f => ReifiedGetter a b -> ReifiedGetter (f a) (f b) #

conjoined :: ((ReifiedGetter ~ (->)) -> q (a -> b) r) -> q (ReifiedGetter a b) r -> q (ReifiedGetter a b) r #

Arrow ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

arr :: (b -> c) -> ReifiedGetter b c #

first :: ReifiedGetter b c -> ReifiedGetter (b, d) (c, d) #

second :: ReifiedGetter b c -> ReifiedGetter (d, b) (d, c) #

(***) :: ReifiedGetter b c -> ReifiedGetter b' c' -> ReifiedGetter (b, b') (c, c') #

(&&&) :: ReifiedGetter b c -> ReifiedGetter b c' -> ReifiedGetter b (c, c') #

ArrowChoice ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

left :: ReifiedGetter b c -> ReifiedGetter (Either b d) (Either c d) #

right :: ReifiedGetter b c -> ReifiedGetter (Either d b) (Either d c) #

(+++) :: ReifiedGetter b c -> ReifiedGetter b' c' -> ReifiedGetter (Either b b') (Either c c') #

(|||) :: ReifiedGetter b d -> ReifiedGetter c d -> ReifiedGetter (Either b c) d #

ArrowApply ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

app :: ReifiedGetter (ReifiedGetter b c, b) c #

ArrowLoop ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

loop :: ReifiedGetter (b, d) (c, d) -> ReifiedGetter b c #

Corepresentable ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Associated Types

type Corep ReifiedGetter :: * -> *

Methods

cotabulate :: (Corep ReifiedGetter d -> c) -> ReifiedGetter d c

Representable ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Associated Types

type Rep ReifiedGetter :: * -> *

Methods

tabulate :: (d -> Rep ReifiedGetter c) -> ReifiedGetter d c

Closed ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

closed :: ReifiedGetter a b -> ReifiedGetter (x -> a) (x -> b)

Costrong ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

unfirst :: ReifiedGetter (a, d) (b, d) -> ReifiedGetter a b

unsecond :: ReifiedGetter (d, a) (d, b) -> ReifiedGetter a b

Strong ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

first' :: ReifiedGetter a b -> ReifiedGetter (a, c) (b, c)

second' :: ReifiedGetter a b -> ReifiedGetter (c, a) (c, b)

Cosieve ReifiedGetter Identity 
Instance details

Defined in Control.Lens.Reified

Methods

cosieve :: ReifiedGetter a b -> Identity a -> b

Sieve ReifiedGetter Identity 
Instance details

Defined in Control.Lens.Reified

Methods

sieve :: ReifiedGetter a b -> a -> Identity b

MonadReader s (ReifiedGetter s) 
Instance details

Defined in Control.Lens.Reified

Methods

ask :: ReifiedGetter s s #

local :: (s -> s) -> ReifiedGetter s a -> ReifiedGetter s a #

reader :: (s -> a) -> ReifiedGetter s a #

Monad (ReifiedGetter s) 
Instance details

Defined in Control.Lens.Reified

Methods

(>>=) :: ReifiedGetter s a -> (a -> ReifiedGetter s b) -> ReifiedGetter s b #

(>>) :: ReifiedGetter s a -> ReifiedGetter s b -> ReifiedGetter s b #

return :: a -> ReifiedGetter s a #

fail :: String -> ReifiedGetter s a #

Functor (ReifiedGetter s) 
Instance details

Defined in Control.Lens.Reified

Methods

fmap :: (a -> b) -> ReifiedGetter s a -> ReifiedGetter s b #

(<$) :: a -> ReifiedGetter s b -> ReifiedGetter s a #

Applicative (ReifiedGetter s) 
Instance details

Defined in Control.Lens.Reified

Methods

pure :: a -> ReifiedGetter s a #

(<*>) :: ReifiedGetter s (a -> b) -> ReifiedGetter s a -> ReifiedGetter s b #

liftA2 :: (a -> b -> c) -> ReifiedGetter s a -> ReifiedGetter s b -> ReifiedGetter s c #

(*>) :: ReifiedGetter s a -> ReifiedGetter s b -> ReifiedGetter s b #

(<*) :: ReifiedGetter s a -> ReifiedGetter s b -> ReifiedGetter s a #

Monoid s => Comonad (ReifiedGetter s) 
Instance details

Defined in Control.Lens.Reified

Apply (ReifiedGetter s) 
Instance details

Defined in Control.Lens.Reified

Methods

(<.>) :: ReifiedGetter s (a -> b) -> ReifiedGetter s a -> ReifiedGetter s b

(.>) :: ReifiedGetter s a -> ReifiedGetter s b -> ReifiedGetter s b

(<.) :: ReifiedGetter s a -> ReifiedGetter s b -> ReifiedGetter s a

liftF2 :: (a -> b -> c) -> ReifiedGetter s a -> ReifiedGetter s b -> ReifiedGetter s c

Bind (ReifiedGetter s) 
Instance details

Defined in Control.Lens.Reified

Methods

(>>-) :: ReifiedGetter s a -> (a -> ReifiedGetter s b) -> ReifiedGetter s b

join :: ReifiedGetter s (ReifiedGetter s a) -> ReifiedGetter s a

Monoid s => ComonadApply (ReifiedGetter s) 
Instance details

Defined in Control.Lens.Reified

Distributive (ReifiedGetter s) 
Instance details

Defined in Control.Lens.Reified

Methods

distribute :: Functor f => f (ReifiedGetter s a) -> ReifiedGetter s (f a)

collect :: Functor f => (a -> ReifiedGetter s b) -> f a -> ReifiedGetter s (f b)

distributeM :: Monad m => m (ReifiedGetter s a) -> ReifiedGetter s (m a)

collectM :: Monad m => (a -> ReifiedGetter s b) -> m a -> ReifiedGetter s (m b)

Semigroup s => Extend (ReifiedGetter s) 
Instance details

Defined in Control.Lens.Reified

Category ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

id :: ReifiedGetter a a #

(.) :: ReifiedGetter b c -> ReifiedGetter a b -> ReifiedGetter a c #

type Corep ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

type Corep ReifiedGetter = Identity
type Rep ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

newtype ReifiedFold s a #

Constructors

Fold 

Fields

Instances
Profunctor ReifiedFold 
Instance details

Defined in Control.Lens.Reified

Methods

dimap :: (a -> b) -> (c -> d) -> ReifiedFold b c -> ReifiedFold a d #

lmap :: (a -> b) -> ReifiedFold b c -> ReifiedFold a c #

rmap :: (b -> c) -> ReifiedFold a b -> ReifiedFold a c #

(#.) :: Coercible c b => (b -> c) -> ReifiedFold a b -> ReifiedFold a c

(.#) :: Coercible b a => ReifiedFold b c -> (a -> b) -> ReifiedFold a c

Choice ReifiedFold 
Instance details

Defined in Control.Lens.Reified

Methods

left' :: ReifiedFold a b -> ReifiedFold (Either a c) (Either b c) #

right' :: ReifiedFold a b -> ReifiedFold (Either c a) (Either c b) #

Arrow ReifiedFold 
Instance details

Defined in Control.Lens.Reified

Methods

arr :: (b -> c) -> ReifiedFold b c #

first :: ReifiedFold b c -> ReifiedFold (b, d) (c, d) #

second :: ReifiedFold b c -> ReifiedFold (d, b) (d, c) #

(***) :: ReifiedFold b c -> ReifiedFold b' c' -> ReifiedFold (b, b') (c, c') #

(&&&) :: ReifiedFold b c -> ReifiedFold b c' -> ReifiedFold b (c, c') #

ArrowChoice ReifiedFold 
Instance details

Defined in Control.Lens.Reified

Methods

left :: ReifiedFold b c -> ReifiedFold (Either b d) (Either c d) #

right :: ReifiedFold b c -> ReifiedFold (Either d b) (Either d c) #

(+++) :: ReifiedFold b c -> ReifiedFold b' c' -> ReifiedFold (Either b b') (Either c c') #

(|||) :: ReifiedFold b d -> ReifiedFold c d -> ReifiedFold (Either b c) d #

ArrowApply ReifiedFold 
Instance details

Defined in Control.Lens.Reified

Methods

app :: ReifiedFold (ReifiedFold b c, b) c #

Representable ReifiedFold 
Instance details

Defined in Control.Lens.Reified

Associated Types

type Rep ReifiedFold :: * -> *

Methods

tabulate :: (d -> Rep ReifiedFold c) -> ReifiedFold d c

Strong ReifiedFold 
Instance details

Defined in Control.Lens.Reified

Methods

first' :: ReifiedFold a b -> ReifiedFold (a, c) (b, c)

second' :: ReifiedFold a b -> ReifiedFold (c, a) (c, b)

Sieve ReifiedFold [] 
Instance details

Defined in Control.Lens.Reified

Methods

sieve :: ReifiedFold a b -> a -> [b]

MonadReader s (ReifiedFold s) 
Instance details

Defined in Control.Lens.Reified

Methods

ask :: ReifiedFold s s #

local :: (s -> s) -> ReifiedFold s a -> ReifiedFold s a #

reader :: (s -> a) -> ReifiedFold s a #

Monad (ReifiedFold s) 
Instance details

Defined in Control.Lens.Reified

Methods

(>>=) :: ReifiedFold s a -> (a -> ReifiedFold s b) -> ReifiedFold s b #

(>>) :: ReifiedFold s a -> ReifiedFold s b -> ReifiedFold s b #

return :: a -> ReifiedFold s a #

fail :: String -> ReifiedFold s a #

Functor (ReifiedFold s) 
Instance details

Defined in Control.Lens.Reified

Methods

fmap :: (a -> b) -> ReifiedFold s a -> ReifiedFold s b #

(<$) :: a -> ReifiedFold s b -> ReifiedFold s a #

Applicative (ReifiedFold s) 
Instance details

Defined in Control.Lens.Reified

Methods

pure :: a -> ReifiedFold s a #

(<*>) :: ReifiedFold s (a -> b) -> ReifiedFold s a -> ReifiedFold s b #

liftA2 :: (a -> b -> c) -> ReifiedFold s a -> ReifiedFold s b -> ReifiedFold s c #

(*>) :: ReifiedFold s a -> ReifiedFold s b -> ReifiedFold s b #

(<*) :: ReifiedFold s a -> ReifiedFold s b -> ReifiedFold s a #

MonadPlus (ReifiedFold s) 
Instance details

Defined in Control.Lens.Reified

Methods

mzero :: ReifiedFold s a #

mplus :: ReifiedFold s a -> ReifiedFold s a -> ReifiedFold s a #

Alternative (ReifiedFold s) 
Instance details

Defined in Control.Lens.Reified

Methods

empty :: ReifiedFold s a #

(<|>) :: ReifiedFold s a -> ReifiedFold s a -> ReifiedFold s a #

some :: ReifiedFold s a -> ReifiedFold s [a] #

many :: ReifiedFold s a -> ReifiedFold s [a] #

Apply (ReifiedFold s) 
Instance details

Defined in Control.Lens.Reified

Methods

(<.>) :: ReifiedFold s (a -> b) -> ReifiedFold s a -> ReifiedFold s b

(.>) :: ReifiedFold s a -> ReifiedFold s b -> ReifiedFold s b

(<.) :: ReifiedFold s a -> ReifiedFold s b -> ReifiedFold s a

liftF2 :: (a -> b -> c) -> ReifiedFold s a -> ReifiedFold s b -> ReifiedFold s c

Bind (ReifiedFold s) 
Instance details

Defined in Control.Lens.Reified

Methods

(>>-) :: ReifiedFold s a -> (a -> ReifiedFold s b) -> ReifiedFold s b

join :: ReifiedFold s (ReifiedFold s a) -> ReifiedFold s a

Alt (ReifiedFold s) 
Instance details

Defined in Control.Lens.Reified

Plus (ReifiedFold s) 
Instance details

Defined in Control.Lens.Reified

Methods

zero :: ReifiedFold s a

Category ReifiedFold 
Instance details

Defined in Control.Lens.Reified

Methods

id :: ReifiedFold a a #

(.) :: ReifiedFold b c -> ReifiedFold a b -> ReifiedFold a c #

Semigroup (ReifiedFold s a) 
Instance details

Defined in Control.Lens.Reified

Methods

(<>) :: ReifiedFold s a -> ReifiedFold s a -> ReifiedFold s a #

sconcat :: NonEmpty (ReifiedFold s a) -> ReifiedFold s a #

stimes :: Integral b => b -> ReifiedFold s a -> ReifiedFold s a #

Monoid (ReifiedFold s a) 
Instance details

Defined in Control.Lens.Reified

Methods

mempty :: ReifiedFold s a #

mappend :: ReifiedFold s a -> ReifiedFold s a -> ReifiedFold s a #

mconcat :: [ReifiedFold s a] -> ReifiedFold s a #

type Rep ReifiedFold 
Instance details

Defined in Control.Lens.Reified

type Rep ReifiedFold = []

type APrism' s a = APrism s s a a #

type APrism s t a b = Market a b a (Identity b) -> Market a b s (Identity t) #

class Plated a where #

Methods

plate :: Traversal' a a #

Instances
Plated Exp 
Instance details

Defined in Control.Lens.Plated

Plated Pat 
Instance details

Defined in Control.Lens.Plated

Plated Type 
Instance details

Defined in Control.Lens.Plated

Plated Dec 
Instance details

Defined in Control.Lens.Plated

Plated Con 
Instance details

Defined in Control.Lens.Plated

Plated Stmt 
Instance details

Defined in Control.Lens.Plated

Plated [a] 
Instance details

Defined in Control.Lens.Plated

Methods

plate :: Traversal' [a] [a] #

Plated (Tree a) 
Instance details

Defined in Control.Lens.Plated

Methods

plate :: Traversal' (Tree a) (Tree a) #

Traversable f => Plated (Cofree f a) 
Instance details

Defined in Control.Lens.Plated

Methods

plate :: Traversal' (Cofree f a) (Cofree f a) #

Traversable f => Plated (F f a) 
Instance details

Defined in Control.Lens.Plated

Methods

plate :: Traversal' (F f a) (F f a) #

Traversable f => Plated (Free f a) 
Instance details

Defined in Control.Lens.Plated

Methods

plate :: Traversal' (Free f a) (Free f a) #

(Traversable f, Traversable w) => Plated (CofreeT f w a) 
Instance details

Defined in Control.Lens.Plated

Methods

plate :: Traversal' (CofreeT f w a) (CofreeT f w a) #

(Traversable f, Traversable m) => Plated (FreeT f m a) 
Instance details

Defined in Control.Lens.Plated

Methods

plate :: Traversal' (FreeT f m a) (FreeT f m a) #

class GPlated a (g :: * -> *) #

Minimal complete definition

gplate'

Instances
GPlated a (V1 :: * -> *) 
Instance details

Defined in Control.Lens.Plated

Methods

gplate' :: Applicative f => (a -> f a) -> V1 p -> f (V1 p)

GPlated a (U1 :: * -> *) 
Instance details

Defined in Control.Lens.Plated

Methods

gplate' :: Applicative f => (a -> f a) -> U1 p -> f (U1 p)

GPlated a (K1 i a :: * -> *) 
Instance details

Defined in Control.Lens.Plated

Methods

gplate' :: Applicative f => (a -> f a) -> K1 i a p -> f (K1 i a p)

GPlated a (K1 i b :: * -> *) 
Instance details

Defined in Control.Lens.Plated

Methods

gplate' :: Applicative f => (a -> f a) -> K1 i b p -> f (K1 i b p)

(GPlated a f, GPlated a g) => GPlated a (f :+: g) 
Instance details

Defined in Control.Lens.Plated

Methods

gplate' :: Applicative f0 => (a -> f0 a) -> (f :+: g) p -> f0 ((f :+: g) p)

(GPlated a f, GPlated a g) => GPlated a (f :*: g) 
Instance details

Defined in Control.Lens.Plated

Methods

gplate' :: Applicative f0 => (a -> f0 a) -> (f :*: g) p -> f0 ((f :*: g) p)

GPlated a f => GPlated a (M1 i c f) 
Instance details

Defined in Control.Lens.Plated

Methods

gplate' :: Applicative f0 => (a -> f0 a) -> M1 i c f p -> f0 (M1 i c f p)

type AnIndexedLens' i s a = AnIndexedLens i s s a a #

type AnIndexedLens i s t a b = Optical (Indexed i) ((->) :: * -> * -> *) (Pretext (Indexed i) a b) s t a b #

type ALens' s a = ALens s s a a #

type ALens s t a b = LensLike (Pretext ((->) :: * -> * -> *) a b) s t a b #

class Bifunctor p => Swapped (p :: * -> * -> *) where #

Minimal complete definition

swapped

Methods

swapped :: (Profunctor p, Functor f) => p (p b a) (f (p d c)) -> p (p a b) (f (p c d)) #

Instances
Swapped Either 
Instance details

Defined in Control.Lens.Iso

Methods

swapped :: (Profunctor p, Functor f) => p (Either b a) (f (Either d c)) -> p (Either a b) (f (Either c d)) #

Swapped (,) 
Instance details

Defined in Control.Lens.Iso

Methods

swapped :: (Profunctor p, Functor f) => p (b, a) (f (d, c)) -> p (a, b) (f (c, d)) #

class Strict lazy strict | lazy -> strict, strict -> lazy where #

Minimal complete definition

strict

Methods

strict :: Iso' lazy strict #

Instances
Strict ByteString ByteString 
Instance details

Defined in Control.Lens.Iso

Strict Text Text 
Instance details

Defined in Control.Lens.Iso

Methods

strict :: Iso' Text Text0 #

Strict (ST s a) (ST s a) 
Instance details

Defined in Control.Lens.Iso

Methods

strict :: Iso' (ST s a) (ST0 s a) #

Strict (WriterT w m a) (WriterT w m a) 
Instance details

Defined in Control.Lens.Iso

Methods

strict :: Iso' (WriterT0 w m a) (WriterT w m a) #

Strict (StateT s m a) (StateT s m a) 
Instance details

Defined in Control.Lens.Iso

Methods

strict :: Iso' (StateT0 s m a) (StateT s m a) #

Strict (RWST r w s m a) (RWST r w s m a) 
Instance details

Defined in Control.Lens.Iso

Methods

strict :: Iso' (RWST0 r w s m a) (RWST r w s m a) #

type AnIso' s a = AnIso s s a a #

type AnIso s t a b = Exchange a b a (Identity b) -> Exchange a b s (Identity t) #

class (Applicative f, Distributive f, Traversable f) => Settable (f :: * -> *) #

Minimal complete definition

untainted

Instances
Settable Identity 
Instance details

Defined in Control.Lens.Internal.Setter

Methods

untainted :: Identity a -> a

untaintedDot :: Profunctor p => p a (Identity b) -> p a b

taintedDot :: Profunctor p => p a b -> p a (Identity b)

Settable f => Settable (Backwards f) 
Instance details

Defined in Control.Lens.Internal.Setter

Methods

untainted :: Backwards f a -> a

untaintedDot :: Profunctor p => p a (Backwards f b) -> p a b

taintedDot :: Profunctor p => p a b -> p a (Backwards f b)

(Settable f, Settable g) => Settable (Compose f g) 
Instance details

Defined in Control.Lens.Internal.Setter

Methods

untainted :: Compose f g a -> a

untaintedDot :: Profunctor p => p a (Compose f g b) -> p a b

taintedDot :: Profunctor p => p a b -> p a (Compose f g b)

class (Profunctor p, Bifunctor p) => Reviewable (p :: * -> * -> *) #

Instances
(Profunctor p, Bifunctor p) => Reviewable p 
Instance details

Defined in Control.Lens.Internal.Review

data Magma i t b a #

Instances
TraversableWithIndex i (Magma i t b) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (i -> a -> f b0) -> Magma i t b a -> f (Magma i t b b0) #

itraversed :: (Indexable i p, Applicative f) => p a (f b0) -> Magma i t b a -> f (Magma i t b b0) #

FunctorWithIndex i (Magma i t b) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (i -> a -> b0) -> Magma i t b a -> Magma i t b b0 #

imapped :: (Indexable i p, Settable f) => p a (f b0) -> Magma i t b a -> f (Magma i t b b0) #

FoldableWithIndex i (Magma i t b) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (i -> a -> m) -> Magma i t b a -> m #

ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> Magma i t b a -> f (Magma i t b a) #

ifoldr :: (i -> a -> b0 -> b0) -> b0 -> Magma i t b a -> b0 #

ifoldl :: (i -> b0 -> a -> b0) -> b0 -> Magma i t b a -> b0 #

ifoldr' :: (i -> a -> b0 -> b0) -> b0 -> Magma i t b a -> b0 #

ifoldl' :: (i -> b0 -> a -> b0) -> b0 -> Magma i t b a -> b0 #

Functor (Magma i t b) 
Instance details

Defined in Control.Lens.Internal.Magma

Methods

fmap :: (a -> b0) -> Magma i t b a -> Magma i t b b0 #

(<$) :: a -> Magma i t b b0 -> Magma i t b a #

Foldable (Magma i t b) 
Instance details

Defined in Control.Lens.Internal.Magma

Methods

fold :: Monoid m => Magma i t b m -> m #

foldMap :: Monoid m => (a -> m) -> Magma i t b a -> m #

foldr :: (a -> b0 -> b0) -> b0 -> Magma i t b a -> b0 #

foldr' :: (a -> b0 -> b0) -> b0 -> Magma i t b a -> b0 #

foldl :: (b0 -> a -> b0) -> b0 -> Magma i t b a -> b0 #

foldl' :: (b0 -> a -> b0) -> b0 -> Magma i t b a -> b0 #

foldr1 :: (a -> a -> a) -> Magma i t b a -> a #

foldl1 :: (a -> a -> a) -> Magma i t b a -> a #

toList :: Magma i t b a -> [a] #

null :: Magma i t b a -> Bool #

length :: Magma i t b a -> Int #

elem :: Eq a => a -> Magma i t b a -> Bool #

maximum :: Ord a => Magma i t b a -> a #

minimum :: Ord a => Magma i t b a -> a #

sum :: Num a => Magma i t b a -> a #

product :: Num a => Magma i t b a -> a #

Traversable (Magma i t b) 
Instance details

Defined in Control.Lens.Internal.Magma

Methods

traverse :: Applicative f => (a -> f b0) -> Magma i t b a -> f (Magma i t b b0) #

sequenceA :: Applicative f => Magma i t b (f a) -> f (Magma i t b a) #

mapM :: Monad m => (a -> m b0) -> Magma i t b a -> m (Magma i t b b0) #

sequence :: Monad m => Magma i t b (m a) -> m (Magma i t b a) #

(Show i, Show a) => Show (Magma i t b a) 
Instance details

Defined in Control.Lens.Internal.Magma

Methods

showsPrec :: Int -> Magma i t b a -> ShowS #

show :: Magma i t b a -> String #

showList :: [Magma i t b a] -> ShowS #

data Level i a #

Instances
TraversableWithIndex i (Level i) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (i -> a -> f b) -> Level i a -> f (Level i b) #

itraversed :: (Indexable i p, Applicative f) => p a (f b) -> Level i a -> f (Level i b) #

FunctorWithIndex i (Level i) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (i -> a -> b) -> Level i a -> Level i b #

imapped :: (Indexable i p, Settable f) => p a (f b) -> Level i a -> f (Level i b) #

FoldableWithIndex i (Level i) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (i -> a -> m) -> Level i a -> m #

ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> Level i a -> f (Level i a) #

ifoldr :: (i -> a -> b -> b) -> b -> Level i a -> b #

ifoldl :: (i -> b -> a -> b) -> b -> Level i a -> b #

ifoldr' :: (i -> a -> b -> b) -> b -> Level i a -> b #

ifoldl' :: (i -> b -> a -> b) -> b -> Level i a -> b #

Functor (Level i) 
Instance details

Defined in Control.Lens.Internal.Level

Methods

fmap :: (a -> b) -> Level i a -> Level i b #

(<$) :: a -> Level i b -> Level i a #

Foldable (Level i) 
Instance details

Defined in Control.Lens.Internal.Level

Methods

fold :: Monoid m => Level i m -> m #

foldMap :: Monoid m => (a -> m) -> Level i a -> m #

foldr :: (a -> b -> b) -> b -> Level i a -> b #

foldr' :: (a -> b -> b) -> b -> Level i a -> b #

foldl :: (b -> a -> b) -> b -> Level i a -> b #

foldl' :: (b -> a -> b) -> b -> Level i a -> b #

foldr1 :: (a -> a -> a) -> Level i a -> a #

foldl1 :: (a -> a -> a) -> Level i a -> a #

toList :: Level i a -> [a] #

null :: Level i a -> Bool #

length :: Level i a -> Int #

elem :: Eq a => a -> Level i a -> Bool #

maximum :: Ord a => Level i a -> a #

minimum :: Ord a => Level i a -> a #

sum :: Num a => Level i a -> a #

product :: Num a => Level i a -> a #

Traversable (Level i) 
Instance details

Defined in Control.Lens.Internal.Level

Methods

traverse :: Applicative f => (a -> f b) -> Level i a -> f (Level i b) #

sequenceA :: Applicative f => Level i (f a) -> f (Level i a) #

mapM :: Monad m => (a -> m b) -> Level i a -> m (Level i b) #

sequence :: Monad m => Level i (m a) -> m (Level i a) #

(Eq i, Eq a) => Eq (Level i a) 
Instance details

Defined in Control.Lens.Internal.Level

Methods

(==) :: Level i a -> Level i a -> Bool #

(/=) :: Level i a -> Level i a -> Bool #

(Ord i, Ord a) => Ord (Level i a) 
Instance details

Defined in Control.Lens.Internal.Level

Methods

compare :: Level i a -> Level i a -> Ordering #

(<) :: Level i a -> Level i a -> Bool #

(<=) :: Level i a -> Level i a -> Bool #

(>) :: Level i a -> Level i a -> Bool #

(>=) :: Level i a -> Level i a -> Bool #

max :: Level i a -> Level i a -> Level i a #

min :: Level i a -> Level i a -> Level i a #

(Read i, Read a) => Read (Level i a) 
Instance details

Defined in Control.Lens.Internal.Level

(Show i, Show a) => Show (Level i a) 
Instance details

Defined in Control.Lens.Internal.Level

Methods

showsPrec :: Int -> Level i a -> ShowS #

show :: Level i a -> String #

showList :: [Level i a] -> ShowS #

class Reversing t where #

Minimal complete definition

reversing

Methods

reversing :: t -> t #

Instances
Reversing ByteString 
Instance details

Defined in Control.Lens.Internal.Iso

Reversing ByteString 
Instance details

Defined in Control.Lens.Internal.Iso

Reversing Text 
Instance details

Defined in Control.Lens.Internal.Iso

Methods

reversing :: Text -> Text #

Reversing Text 
Instance details

Defined in Control.Lens.Internal.Iso

Methods

reversing :: Text -> Text #

Reversing [a] 
Instance details

Defined in Control.Lens.Internal.Iso

Methods

reversing :: [a] -> [a] #

Reversing (NonEmpty a) 
Instance details

Defined in Control.Lens.Internal.Iso

Methods

reversing :: NonEmpty a -> NonEmpty a #

Reversing (Seq a) 
Instance details

Defined in Control.Lens.Internal.Iso

Methods

reversing :: Seq a -> Seq a #

Unbox a => Reversing (Vector a) 
Instance details

Defined in Control.Lens.Internal.Iso

Methods

reversing :: Vector a -> Vector a #

Storable a => Reversing (Vector a) 
Instance details

Defined in Control.Lens.Internal.Iso

Methods

reversing :: Vector a -> Vector a #

Reversing (Vector a) 
Instance details

Defined in Control.Lens.Internal.Iso

Methods

reversing :: Vector a -> Vector a #

Prim a => Reversing (Vector a) 
Instance details

Defined in Control.Lens.Internal.Iso

Methods

reversing :: Vector a -> Vector a #

(Metric v, OrderedField n) => Reversing (Located (Trail v n)) 
Instance details

Defined in Diagrams.Trail

Methods

reversing :: Located (Trail v n) -> Located (Trail v n) #

(Metric v, OrderedField n) => Reversing (Located (Trail' l v n)) 
Instance details

Defined in Diagrams.Trail

Methods

reversing :: Located (Trail' l v n) -> Located (Trail' l v n) #

(Metric v, OrderedField n) => Reversing (Trail v n) 
Instance details

Defined in Diagrams.Trail

Methods

reversing :: Trail v n -> Trail v n #

(Metric v, OrderedField n) => Reversing (Path v n) 
Instance details

Defined in Diagrams.Path

Methods

reversing :: Path v n -> Path v n #

(Metric v, OrderedField n) => Reversing (Trail' l v n) 
Instance details

Defined in Diagrams.Trail

Methods

reversing :: Trail' l v n -> Trail' l v n #

newtype Indexed i a b #

Constructors

Indexed 

Fields

Instances
i ~ j => Indexable i (Indexed j) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

indexed :: Indexed j a b -> i -> a -> b #

Profunctor (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

dimap :: (a -> b) -> (c -> d) -> Indexed i b c -> Indexed i a d #

lmap :: (a -> b) -> Indexed i b c -> Indexed i a c #

rmap :: (b -> c) -> Indexed i a b -> Indexed i a c #

(#.) :: Coercible c b => (b -> c) -> Indexed i a b -> Indexed i a c

(.#) :: Coercible b a => Indexed i b c -> (a -> b) -> Indexed i a c

Choice (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

left' :: Indexed i a b -> Indexed i (Either a c) (Either b c) #

right' :: Indexed i a b -> Indexed i (Either c a) (Either c b) #

Conjoined (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

distrib :: Functor f => Indexed i a b -> Indexed i (f a) (f b) #

conjoined :: ((Indexed i ~ (->)) -> q (a -> b) r) -> q (Indexed i a b) r -> q (Indexed i a b) r #

Arrow (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

arr :: (b -> c) -> Indexed i b c #

first :: Indexed i b c -> Indexed i (b, d) (c, d) #

second :: Indexed i b c -> Indexed i (d, b) (d, c) #

(***) :: Indexed i b c -> Indexed i b' c' -> Indexed i (b, b') (c, c') #

(&&&) :: Indexed i b c -> Indexed i b c' -> Indexed i b (c, c') #

ArrowChoice (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

left :: Indexed i b c -> Indexed i (Either b d) (Either c d) #

right :: Indexed i b c -> Indexed i (Either d b) (Either d c) #

(+++) :: Indexed i b c -> Indexed i b' c' -> Indexed i (Either b b') (Either c c') #

(|||) :: Indexed i b d -> Indexed i c d -> Indexed i (Either b c) d #

ArrowApply (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

app :: Indexed i (Indexed i b c, b) c #

ArrowLoop (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

loop :: Indexed i (b, d) (c, d) -> Indexed i b c #

Corepresentable (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Associated Types

type Corep (Indexed i) :: * -> *

Methods

cotabulate :: (Corep (Indexed i) d -> c) -> Indexed i d c

Representable (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Associated Types

type Rep (Indexed i) :: * -> *

Methods

tabulate :: (d -> Rep (Indexed i) c) -> Indexed i d c

Closed (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

closed :: Indexed i a b -> Indexed i (x -> a) (x -> b)

Costrong (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

unfirst :: Indexed i (a, d) (b, d) -> Indexed i a b

unsecond :: Indexed i (d, a) (d, b) -> Indexed i a b

Strong (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

first' :: Indexed i a b -> Indexed i (a, c) (b, c)

second' :: Indexed i a b -> Indexed i (c, a) (c, b)

Bizarre (Indexed Int) Mafic 
Instance details

Defined in Control.Lens.Internal.Magma

Methods

bazaar :: Applicative f => Indexed Int a (f b) -> Mafic a b t -> f t

Category (Indexed i :: * -> * -> *) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

id :: Indexed i a a #

(.) :: Indexed i b c -> Indexed i a b -> Indexed i a c #

Cosieve (Indexed i) ((,) i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

cosieve :: Indexed i a b -> (i, a) -> b

Bizarre (Indexed i) (Molten i) 
Instance details

Defined in Control.Lens.Internal.Magma

Methods

bazaar :: Applicative f => Indexed i a (f b) -> Molten i a b t -> f t

Sellable (Indexed i) (Molten i) 
Instance details

Defined in Control.Lens.Internal.Magma

Methods

sell :: Indexed i a (Molten i a b b)

Sieve (Indexed i) ((->) i :: * -> *) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

sieve :: Indexed i a b -> a -> i -> b

Monad (Indexed i a) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

(>>=) :: Indexed i a a0 -> (a0 -> Indexed i a b) -> Indexed i a b #

(>>) :: Indexed i a a0 -> Indexed i a b -> Indexed i a b #

return :: a0 -> Indexed i a a0 #

fail :: String -> Indexed i a a0 #

Functor (Indexed i a) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

fmap :: (a0 -> b) -> Indexed i a a0 -> Indexed i a b #

(<$) :: a0 -> Indexed i a b -> Indexed i a a0 #

MonadFix (Indexed i a) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

mfix :: (a0 -> Indexed i a a0) -> Indexed i a a0 #

Applicative (Indexed i a) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

pure :: a0 -> Indexed i a a0 #

(<*>) :: Indexed i a (a0 -> b) -> Indexed i a a0 -> Indexed i a b #

liftA2 :: (a0 -> b -> c) -> Indexed i a a0 -> Indexed i a b -> Indexed i a c #

(*>) :: Indexed i a a0 -> Indexed i a b -> Indexed i a b #

(<*) :: Indexed i a a0 -> Indexed i a b -> Indexed i a a0 #

Apply (Indexed i a) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

(<.>) :: Indexed i a (a0 -> b) -> Indexed i a a0 -> Indexed i a b

(.>) :: Indexed i a a0 -> Indexed i a b -> Indexed i a b

(<.) :: Indexed i a a0 -> Indexed i a b -> Indexed i a a0

liftF2 :: (a0 -> b -> c) -> Indexed i a a0 -> Indexed i a b -> Indexed i a c

Bind (Indexed i a) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

(>>-) :: Indexed i a a0 -> (a0 -> Indexed i a b) -> Indexed i a b

join :: Indexed i a (Indexed i a a0) -> Indexed i a a0

type Corep (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

type Corep (Indexed i) = (,) i
type Rep (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

type Rep (Indexed i) = ((->) i :: * -> *)

class Conjoined p => Indexable i (p :: * -> * -> *) where #

Minimal complete definition

indexed

Methods

indexed :: p a b -> i -> a -> b #

Instances
i ~ j => Indexable i (Indexed j) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

indexed :: Indexed j a b -> i -> a -> b #

Indexable i ((->) :: * -> * -> *) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

indexed :: (a -> b) -> i -> a -> b #

class (Choice p, Corepresentable p, Comonad (Corep p), Traversable (Corep p), Strong p, Representable p, Monad (Rep p), MonadFix (Rep p), Distributive (Rep p), Costrong p, ArrowLoop p, ArrowApply p, ArrowChoice p, Closed p) => Conjoined (p :: * -> * -> *) where #

Methods

distrib :: Functor f => p a b -> p (f a) (f b) #

conjoined :: ((p ~ ((->) :: * -> * -> *)) -> q (a -> b) r) -> q (p a b) r -> q (p a b) r #

Instances
Conjoined ReifiedGetter 
Instance details

Defined in Control.Lens.Reified

Methods

distrib :: Functor f => ReifiedGetter a b -> ReifiedGetter (f a) (f b) #

conjoined :: ((ReifiedGetter ~ (->)) -> q (a -> b) r) -> q (ReifiedGetter a b) r -> q (ReifiedGetter a b) r #

Conjoined (Indexed i) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

distrib :: Functor f => Indexed i a b -> Indexed i (f a) (f b) #

conjoined :: ((Indexed i ~ (->)) -> q (a -> b) r) -> q (Indexed i a b) r -> q (Indexed i a b) r #

Conjoined ((->) :: * -> * -> *) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

distrib :: Functor f => (a -> b) -> f a -> f b #

conjoined :: (((->) ~ (->)) -> q (a -> b) r) -> q (a -> b) r -> q (a -> b) r #

data Traversed a (f :: * -> *) #

Instances
Applicative f => Semigroup (Traversed a f) 
Instance details

Defined in Control.Lens.Internal.Fold

Methods

(<>) :: Traversed a f -> Traversed a f -> Traversed a f #

sconcat :: NonEmpty (Traversed a f) -> Traversed a f #

stimes :: Integral b => b -> Traversed a f -> Traversed a f #

Applicative f => Monoid (Traversed a f) 
Instance details

Defined in Control.Lens.Internal.Fold

Methods

mempty :: Traversed a f #

mappend :: Traversed a f -> Traversed a f -> Traversed a f #

mconcat :: [Traversed a f] -> Traversed a f #

data Sequenced a (m :: * -> *) #

Instances
Monad m => Semigroup (Sequenced a m) 
Instance details

Defined in Control.Lens.Internal.Fold

Methods

(<>) :: Sequenced a m -> Sequenced a m -> Sequenced a m #

sconcat :: NonEmpty (Sequenced a m) -> Sequenced a m #

stimes :: Integral b => b -> Sequenced a m -> Sequenced a m #

Monad m => Monoid (Sequenced a m) 
Instance details

Defined in Control.Lens.Internal.Fold

Methods

mempty :: Sequenced a m #

mappend :: Sequenced a m -> Sequenced a m -> Sequenced a m #

mconcat :: [Sequenced a m] -> Sequenced a m #

data Rightmost a #

Instances
Semigroup (Rightmost a) 
Instance details

Defined in Control.Lens.Internal.Fold

Methods

(<>) :: Rightmost a -> Rightmost a -> Rightmost a #

sconcat :: NonEmpty (Rightmost a) -> Rightmost a #

stimes :: Integral b => b -> Rightmost a -> Rightmost a #

Monoid (Rightmost a) 
Instance details

Defined in Control.Lens.Internal.Fold

data Leftmost a #

Instances
Semigroup (Leftmost a) 
Instance details

Defined in Control.Lens.Internal.Fold

Methods

(<>) :: Leftmost a -> Leftmost a -> Leftmost a #

sconcat :: NonEmpty (Leftmost a) -> Leftmost a #

stimes :: Integral b => b -> Leftmost a -> Leftmost a #

Monoid (Leftmost a) 
Instance details

Defined in Control.Lens.Internal.Fold

Methods

mempty :: Leftmost a #

mappend :: Leftmost a -> Leftmost a -> Leftmost a #

mconcat :: [Leftmost a] -> Leftmost a #

type FieldNamer = Name -> [Name] -> Name -> [DefName] #

data DefName #

Instances
Eq DefName 
Instance details

Defined in Control.Lens.Internal.FieldTH

Methods

(==) :: DefName -> DefName -> Bool #

(/=) :: DefName -> DefName -> Bool #

Ord DefName 
Instance details

Defined in Control.Lens.Internal.FieldTH

Show DefName 
Instance details

Defined in Control.Lens.Internal.FieldTH

type Context' a = Context a a #

data Context a b t #

Constructors

Context (b -> t) a 
Instances
IndexedComonadStore Context 
Instance details

Defined in Control.Lens.Internal.Context

Methods

ipos :: Context a c t -> a

ipeek :: c -> Context a c t -> t

ipeeks :: (a -> c) -> Context a c t -> t

iseek :: b -> Context a c t -> Context b c t

iseeks :: (a -> b) -> Context a c t -> Context b c t

iexperiment :: Functor f => (b -> f c) -> Context b c t -> f t

context :: Context a b t -> Context a b t

IndexedComonad Context 
Instance details

Defined in Control.Lens.Internal.Context

Methods

iextract :: Context a a t -> t

iduplicate :: Context a c t -> Context a b (Context b c t)

iextend :: (Context b c t -> r) -> Context a c t -> Context a b r

IndexedFunctor Context 
Instance details

Defined in Control.Lens.Internal.Context

Methods

ifmap :: (s -> t) -> Context a b s -> Context a b t

a ~ b => ComonadStore a (Context a b) 
Instance details

Defined in Control.Lens.Internal.Context

Methods

pos :: Context a b a0 -> a

peek :: a -> Context a b a0 -> a0

peeks :: (a -> a) -> Context a b a0 -> a0

seek :: a -> Context a b a0 -> Context a b a0

seeks :: (a -> a) -> Context a b a0 -> Context a b a0

experiment :: Functor f => (a -> f a) -> Context a b a0 -> f a0

Functor (Context a b) 
Instance details

Defined in Control.Lens.Internal.Context

Methods

fmap :: (a0 -> b0) -> Context a b a0 -> Context a b b0 #

(<$) :: a0 -> Context a b b0 -> Context a b a0 #

a ~ b => Comonad (Context a b) 
Instance details

Defined in Control.Lens.Internal.Context

Methods

extract :: Context a b a0 -> a0

duplicate :: Context a b a0 -> Context a b (Context a b a0)

extend :: (Context a b a0 -> b0) -> Context a b a0 -> Context a b b0

Sellable ((->) :: * -> * -> *) Context 
Instance details

Defined in Control.Lens.Internal.Context

Methods

sell :: a -> Context a b b

type Bazaar1' (p :: * -> * -> *) a = Bazaar1 p a a #

newtype Bazaar1 (p :: * -> * -> *) a b t #

Constructors

Bazaar1 

Fields

  • runBazaar1 :: forall (f :: * -> *). Apply f => p a (f b) -> f t
     
Instances
Corepresentable p => Sellable p (Bazaar1 p) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

sell :: p a (Bazaar1 p a b b)

Profunctor p => Bizarre1 p (Bazaar1 p) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

bazaar1 :: Apply f => p a (f b) -> Bazaar1 p a b t -> f t

Conjoined p => IndexedComonad (Bazaar1 p) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

iextract :: Bazaar1 p a a t -> t

iduplicate :: Bazaar1 p a c t -> Bazaar1 p a b (Bazaar1 p b c t)

iextend :: (Bazaar1 p b c t -> r) -> Bazaar1 p a c t -> Bazaar1 p a b r

IndexedFunctor (Bazaar1 p) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

ifmap :: (s -> t) -> Bazaar1 p a b s -> Bazaar1 p a b t

Functor (Bazaar1 p a b) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

fmap :: (a0 -> b0) -> Bazaar1 p a b a0 -> Bazaar1 p a b b0 #

(<$) :: a0 -> Bazaar1 p a b b0 -> Bazaar1 p a b a0 #

(a ~ b, Conjoined p) => Comonad (Bazaar1 p a b) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

extract :: Bazaar1 p a b a0 -> a0

duplicate :: Bazaar1 p a b a0 -> Bazaar1 p a b (Bazaar1 p a b a0)

extend :: (Bazaar1 p a b a0 -> b0) -> Bazaar1 p a b a0 -> Bazaar1 p a b b0

Apply (Bazaar1 p a b) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

(<.>) :: Bazaar1 p a b (a0 -> b0) -> Bazaar1 p a b a0 -> Bazaar1 p a b b0

(.>) :: Bazaar1 p a b a0 -> Bazaar1 p a b b0 -> Bazaar1 p a b b0

(<.) :: Bazaar1 p a b a0 -> Bazaar1 p a b b0 -> Bazaar1 p a b a0

liftF2 :: (a0 -> b0 -> c) -> Bazaar1 p a b a0 -> Bazaar1 p a b b0 -> Bazaar1 p a b c

(a ~ b, Conjoined p) => ComonadApply (Bazaar1 p a b) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

(<@>) :: Bazaar1 p a b (a0 -> b0) -> Bazaar1 p a b a0 -> Bazaar1 p a b b0

(@>) :: Bazaar1 p a b a0 -> Bazaar1 p a b b0 -> Bazaar1 p a b b0

(<@) :: Bazaar1 p a b a0 -> Bazaar1 p a b b0 -> Bazaar1 p a b a0

type Bazaar' (p :: * -> * -> *) a = Bazaar p a a #

newtype Bazaar (p :: * -> * -> *) a b t #

Constructors

Bazaar 

Fields

Instances
Profunctor p => Bizarre p (Bazaar p) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

bazaar :: Applicative f => p a (f b) -> Bazaar p a b t -> f t

Corepresentable p => Sellable p (Bazaar p) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

sell :: p a (Bazaar p a b b)

Conjoined p => IndexedComonad (Bazaar p) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

iextract :: Bazaar p a a t -> t

iduplicate :: Bazaar p a c t -> Bazaar p a b (Bazaar p b c t)

iextend :: (Bazaar p b c t -> r) -> Bazaar p a c t -> Bazaar p a b r

IndexedFunctor (Bazaar p) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

ifmap :: (s -> t) -> Bazaar p a b s -> Bazaar p a b t

Functor (Bazaar p a b) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

fmap :: (a0 -> b0) -> Bazaar p a b a0 -> Bazaar p a b b0 #

(<$) :: a0 -> Bazaar p a b b0 -> Bazaar p a b a0 #

Applicative (Bazaar p a b) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

pure :: a0 -> Bazaar p a b a0 #

(<*>) :: Bazaar p a b (a0 -> b0) -> Bazaar p a b a0 -> Bazaar p a b b0 #

liftA2 :: (a0 -> b0 -> c) -> Bazaar p a b a0 -> Bazaar p a b b0 -> Bazaar p a b c #

(*>) :: Bazaar p a b a0 -> Bazaar p a b b0 -> Bazaar p a b b0 #

(<*) :: Bazaar p a b a0 -> Bazaar p a b b0 -> Bazaar p a b a0 #

(a ~ b, Conjoined p) => Comonad (Bazaar p a b) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

extract :: Bazaar p a b a0 -> a0

duplicate :: Bazaar p a b a0 -> Bazaar p a b (Bazaar p a b a0)

extend :: (Bazaar p a b a0 -> b0) -> Bazaar p a b a0 -> Bazaar p a b b0

Apply (Bazaar p a b) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

(<.>) :: Bazaar p a b (a0 -> b0) -> Bazaar p a b a0 -> Bazaar p a b b0

(.>) :: Bazaar p a b a0 -> Bazaar p a b b0 -> Bazaar p a b b0

(<.) :: Bazaar p a b a0 -> Bazaar p a b b0 -> Bazaar p a b a0

liftF2 :: (a0 -> b0 -> c) -> Bazaar p a b a0 -> Bazaar p a b b0 -> Bazaar p a b c

(a ~ b, Conjoined p) => ComonadApply (Bazaar p a b) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

(<@>) :: Bazaar p a b (a0 -> b0) -> Bazaar p a b a0 -> Bazaar p a b b0

(@>) :: Bazaar p a b a0 -> Bazaar p a b b0 -> Bazaar p a b b0

(<@) :: Bazaar p a b a0 -> Bazaar p a b b0 -> Bazaar p a b a0

class (FunctorWithIndex i t, FoldableWithIndex i t, Traversable t) => TraversableWithIndex i (t :: * -> *) | t -> i where #

Methods

itraverse :: Applicative f => (i -> a -> f b) -> t a -> f (t b) #

itraversed :: (Indexable i p, Applicative f) => p a (f b) -> t a -> f (t b) #

Instances
TraversableWithIndex Int [] 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (Int -> a -> f b) -> [a] -> f [b] #

itraversed :: (Indexable Int p, Applicative f) => p a (f b) -> [a] -> f [b] #

TraversableWithIndex Int ZipList 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (Int -> a -> f b) -> ZipList a -> f (ZipList b) #

itraversed :: (Indexable Int p, Applicative f) => p a (f b) -> ZipList a -> f (ZipList b) #

TraversableWithIndex Int NonEmpty 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (Int -> a -> f b) -> NonEmpty a -> f (NonEmpty b) #

itraversed :: (Indexable Int p, Applicative f) => p a (f b) -> NonEmpty a -> f (NonEmpty b) #

TraversableWithIndex Int IntMap 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (Int -> a -> f b) -> IntMap a -> f (IntMap b) #

itraversed :: (Indexable Int p, Applicative f) => p a (f b) -> IntMap a -> f (IntMap b) #

TraversableWithIndex Int Seq 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (Int -> a -> f b) -> Seq a -> f (Seq b) #

itraversed :: (Indexable Int p, Applicative f) => p a (f b) -> Seq a -> f (Seq b) #

TraversableWithIndex Int Vector 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (Int -> a -> f b) -> Vector a -> f (Vector b) #

itraversed :: (Indexable Int p, Applicative f) => p a (f b) -> Vector a -> f (Vector b) #

TraversableWithIndex () Maybe 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (() -> a -> f b) -> Maybe a -> f (Maybe b) #

itraversed :: (Indexable () p, Applicative f) => p a (f b) -> Maybe a -> f (Maybe b) #

TraversableWithIndex () Par1 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (() -> a -> f b) -> Par1 a -> f (Par1 b) #

itraversed :: (Indexable () p, Applicative f) => p a (f b) -> Par1 a -> f (Par1 b) #

TraversableWithIndex () Identity 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (() -> a -> f b) -> Identity a -> f (Identity b) #

itraversed :: (Indexable () p, Applicative f) => p a (f b) -> Identity a -> f (Identity b) #

TraversableWithIndex k (Map k) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (k -> a -> f b) -> Map k a -> f (Map k b) #

itraversed :: (Indexable k p, Applicative f) => p a (f b) -> Map k a -> f (Map k b) #

TraversableWithIndex k (HashMap k) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (k -> a -> f b) -> HashMap k a -> f (HashMap k b) #

itraversed :: (Indexable k p, Applicative f) => p a (f b) -> HashMap k a -> f (HashMap k b) #

TraversableWithIndex k ((,) k) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (k -> a -> f b) -> (k, a) -> f (k, b) #

itraversed :: (Indexable k p, Applicative f) => p a (f b) -> (k, a) -> f (k, b) #

TraversableWithIndex i (Level i) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (i -> a -> f b) -> Level i a -> f (Level i b) #

itraversed :: (Indexable i p, Applicative f) => p a (f b) -> Level i a -> f (Level i b) #

Ix i => TraversableWithIndex i (Array i) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (i -> a -> f b) -> Array i a -> f (Array i b) #

itraversed :: (Indexable i p, Applicative f) => p a (f b) -> Array i a -> f (Array i b) #

TraversableWithIndex Void (V1 :: * -> *) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (Void -> a -> f b) -> V1 a -> f (V1 b) #

itraversed :: (Indexable Void p, Applicative f) => p a (f b) -> V1 a -> f (V1 b) #

TraversableWithIndex Void (U1 :: * -> *) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (Void -> a -> f b) -> U1 a -> f (U1 b) #

itraversed :: (Indexable Void p, Applicative f) => p a (f b) -> U1 a -> f (U1 b) #

TraversableWithIndex Void (Proxy :: * -> *) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (Void -> a -> f b) -> Proxy a -> f (Proxy b) #

itraversed :: (Indexable Void p, Applicative f) => p a (f b) -> Proxy a -> f (Proxy b) #

TraversableWithIndex () (Tagged a) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (() -> a0 -> f b) -> Tagged a a0 -> f (Tagged a b) #

itraversed :: (Indexable () p, Applicative f) => p a0 (f b) -> Tagged a a0 -> f (Tagged a b) #

TraversableWithIndex i f => TraversableWithIndex i (Reverse f) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f0 => (i -> a -> f0 b) -> Reverse f a -> f0 (Reverse f b) #

itraversed :: (Indexable i p, Applicative f0) => p a (f0 b) -> Reverse f a -> f0 (Reverse f b) #

TraversableWithIndex i f => TraversableWithIndex i (Rec1 f) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f0 => (i -> a -> f0 b) -> Rec1 f a -> f0 (Rec1 f b) #

itraversed :: (Indexable i p, Applicative f0) => p a (f0 b) -> Rec1 f a -> f0 (Rec1 f b) #

TraversableWithIndex i m => TraversableWithIndex i (IdentityT m) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (i -> a -> f b) -> IdentityT m a -> f (IdentityT m b) #

itraversed :: (Indexable i p, Applicative f) => p a (f b) -> IdentityT m a -> f (IdentityT m b) #

TraversableWithIndex i f => TraversableWithIndex i (Backwards f) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f0 => (i -> a -> f0 b) -> Backwards f a -> f0 (Backwards f b) #

itraversed :: (Indexable i p, Applicative f0) => p a (f0 b) -> Backwards f a -> f0 (Backwards f b) #

TraversableWithIndex i (Magma i t b) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (i -> a -> f b0) -> Magma i t b a -> f (Magma i t b b0) #

itraversed :: (Indexable i p, Applicative f) => p a (f b0) -> Magma i t b a -> f (Magma i t b b0) #

TraversableWithIndex Void (K1 i c :: * -> *) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (Void -> a -> f b) -> K1 i c a -> f (K1 i c b) #

itraversed :: (Indexable Void p, Applicative f) => p a (f b) -> K1 i c a -> f (K1 i c b) #

TraversableWithIndex [Int] Tree 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => ([Int] -> a -> f b) -> Tree a -> f (Tree b) #

itraversed :: (Indexable [Int] p, Applicative f) => p a (f b) -> Tree a -> f (Tree b) #

TraversableWithIndex (E V3) V3 
Instance details

Defined in Linear.V3

Methods

itraverse :: Applicative f => (E V3 -> a -> f b) -> V3 a -> f (V3 b) #

itraversed :: (Indexable (E V3) p, Applicative f) => p a (f b) -> V3 a -> f (V3 b) #

TraversableWithIndex (E V2) V2 
Instance details

Defined in Linear.V2

Methods

itraverse :: Applicative f => (E V2 -> a -> f b) -> V2 a -> f (V2 b) #

itraversed :: (Indexable (E V2) p, Applicative f) => p a (f b) -> V2 a -> f (V2 b) #

TraversableWithIndex (E V1) V1 
Instance details

Defined in Linear.V1

Methods

itraverse :: Applicative f => (E V1 -> a -> f b) -> V1 a -> f (V1 b) #

itraversed :: (Indexable (E V1) p, Applicative f) => p a (f b) -> V1 a -> f (V1 b) #

TraversableWithIndex i f => TraversableWithIndex [i] (Free f) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f0 => ([i] -> a -> f0 b) -> Free f a -> f0 (Free f b) #

itraversed :: (Indexable [i] p, Applicative f0) => p a (f0 b) -> Free f a -> f0 (Free f b) #

TraversableWithIndex i f => TraversableWithIndex [i] (Cofree f) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f0 => ([i] -> a -> f0 b) -> Cofree f a -> f0 (Cofree f b) #

itraversed :: (Indexable [i] p, Applicative f0) => p a (f0 b) -> Cofree f a -> f0 (Cofree f b) #

(TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (Either i j) (Sum f g) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f0 => (Either i j -> a -> f0 b) -> Sum f g a -> f0 (Sum f g b) #

itraversed :: (Indexable (Either i j) p, Applicative f0) => p a (f0 b) -> Sum f g a -> f0 (Sum f g b) #

(TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (Either i j) (Product f g) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f0 => (Either i j -> a -> f0 b) -> Product f g a -> f0 (Product f g b) #

itraversed :: (Indexable (Either i j) p, Applicative f0) => p a (f0 b) -> Product f g a -> f0 (Product f g b) #

(TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (Either i j) (f :+: g) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f0 => (Either i j -> a -> f0 b) -> (f :+: g) a -> f0 ((f :+: g) b) #

itraversed :: (Indexable (Either i j) p, Applicative f0) => p a (f0 b) -> (f :+: g) a -> f0 ((f :+: g) b) #

(TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (Either i j) (f :*: g) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f0 => (Either i j -> a -> f0 b) -> (f :*: g) a -> f0 ((f :*: g) b) #

itraversed :: (Indexable (Either i j) p, Applicative f0) => p a (f0 b) -> (f :*: g) a -> f0 ((f :*: g) b) #

(TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (i, j) (Compose f g) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f0 => ((i, j) -> a -> f0 b) -> Compose f g a -> f0 (Compose f g b) #

itraversed :: (Indexable (i, j) p, Applicative f0) => p a (f0 b) -> Compose f g a -> f0 (Compose f g b) #

(TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (i, j) (f :.: g) 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f0 => ((i, j) -> a -> f0 b) -> (f :.: g) a -> f0 ((f :.: g) b) #

itraversed :: (Indexable (i, j) p, Applicative f0) => p a (f0 b) -> (f :.: g) a -> f0 ((f :.: g) b) #

class Functor f => FunctorWithIndex i (f :: * -> *) | f -> i where #

Methods

imap :: (i -> a -> b) -> f a -> f b #

imapped :: (Indexable i p, Settable f) => p a (f b) -> f a -> f (f b) #

Instances
FunctorWithIndex Int [] 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Int -> a -> b) -> [a] -> [b] #

imapped :: (Indexable Int p, Settable f) => p a (f b) -> [a] -> f [b] #

FunctorWithIndex Int ZipList 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Int -> a -> b) -> ZipList a -> ZipList b #

imapped :: (Indexable Int p, Settable f) => p a (f b) -> ZipList a -> f (ZipList b) #

FunctorWithIndex Int NonEmpty 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Int -> a -> b) -> NonEmpty a -> NonEmpty b #

imapped :: (Indexable Int p, Settable f) => p a (f b) -> NonEmpty a -> f (NonEmpty b) #

FunctorWithIndex Int IntMap 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Int -> a -> b) -> IntMap a -> IntMap b #

imapped :: (Indexable Int p, Settable f) => p a (f b) -> IntMap a -> f (IntMap b) #

FunctorWithIndex Int Seq 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Int -> a -> b) -> Seq a -> Seq b #

imapped :: (Indexable Int p, Settable f) => p a (f b) -> Seq a -> f (Seq b) #

FunctorWithIndex Int Vector 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Int -> a -> b) -> Vector a -> Vector b #

imapped :: (Indexable Int p, Settable f) => p a (f b) -> Vector a -> f (Vector b) #

FunctorWithIndex () Maybe 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (() -> a -> b) -> Maybe a -> Maybe b #

imapped :: (Indexable () p, Settable f) => p a (f b) -> Maybe a -> f (Maybe b) #

FunctorWithIndex () Par1 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (() -> a -> b) -> Par1 a -> Par1 b #

imapped :: (Indexable () p, Settable f) => p a (f b) -> Par1 a -> f (Par1 b) #

FunctorWithIndex () Identity 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (() -> a -> b) -> Identity a -> Identity b #

imapped :: (Indexable () p, Settable f) => p a (f b) -> Identity a -> f (Identity b) #

FunctorWithIndex k (Map k) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (k -> a -> b) -> Map k a -> Map k b #

imapped :: (Indexable k p, Settable f) => p a (f b) -> Map k a -> f (Map k b) #

FunctorWithIndex k (HashMap k) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (k -> a -> b) -> HashMap k a -> HashMap k b #

imapped :: (Indexable k p, Settable f) => p a (f b) -> HashMap k a -> f (HashMap k b) #

FunctorWithIndex k ((,) k) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (k -> a -> b) -> (k, a) -> (k, b) #

imapped :: (Indexable k p, Settable f) => p a (f b) -> (k, a) -> f (k, b) #

FunctorWithIndex i (Level i) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (i -> a -> b) -> Level i a -> Level i b #

imapped :: (Indexable i p, Settable f) => p a (f b) -> Level i a -> f (Level i b) #

Ix i => FunctorWithIndex i (Array i) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (i -> a -> b) -> Array i a -> Array i b #

imapped :: (Indexable i p, Settable f) => p a (f b) -> Array i a -> f (Array i b) #

FunctorWithIndex Void (V1 :: * -> *) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Void -> a -> b) -> V1 a -> V1 b #

imapped :: (Indexable Void p, Settable f) => p a (f b) -> V1 a -> f (V1 b) #

FunctorWithIndex Void (U1 :: * -> *) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Void -> a -> b) -> U1 a -> U1 b #

imapped :: (Indexable Void p, Settable f) => p a (f b) -> U1 a -> f (U1 b) #

FunctorWithIndex Void (Proxy :: * -> *) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Void -> a -> b) -> Proxy a -> Proxy b #

imapped :: (Indexable Void p, Settable f) => p a (f b) -> Proxy a -> f (Proxy b) #

FunctorWithIndex () (Tagged a) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (() -> a0 -> b) -> Tagged a a0 -> Tagged a b #

imapped :: (Indexable () p, Settable f) => p a0 (f b) -> Tagged a a0 -> f (Tagged a b) #

FunctorWithIndex i f => FunctorWithIndex i (Reverse f) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (i -> a -> b) -> Reverse f a -> Reverse f b #

imapped :: (Indexable i p, Settable f0) => p a (f0 b) -> Reverse f a -> f0 (Reverse f b) #

FunctorWithIndex i f => FunctorWithIndex i (Rec1 f) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (i -> a -> b) -> Rec1 f a -> Rec1 f b #

imapped :: (Indexable i p, Settable f0) => p a (f0 b) -> Rec1 f a -> f0 (Rec1 f b) #

FunctorWithIndex i m => FunctorWithIndex i (IdentityT m) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (i -> a -> b) -> IdentityT m a -> IdentityT m b #

imapped :: (Indexable i p, Settable f) => p a (f b) -> IdentityT m a -> f (IdentityT m b) #

FunctorWithIndex i f => FunctorWithIndex i (Backwards f) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (i -> a -> b) -> Backwards f a -> Backwards f b #

imapped :: (Indexable i p, Settable f0) => p a (f0 b) -> Backwards f a -> f0 (Backwards f b) #

FunctorWithIndex r ((->) r :: * -> *) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (r -> a -> b) -> (r -> a) -> r -> b #

imapped :: (Indexable r p, Settable f) => p a (f b) -> (r -> a) -> f (r -> b) #

FunctorWithIndex i (Magma i t b) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (i -> a -> b0) -> Magma i t b a -> Magma i t b b0 #

imapped :: (Indexable i p, Settable f) => p a (f b0) -> Magma i t b a -> f (Magma i t b b0) #

FunctorWithIndex Void (K1 i c :: * -> *) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Void -> a -> b) -> K1 i c a -> K1 i c b #

imapped :: (Indexable Void p, Settable f) => p a (f b) -> K1 i c a -> f (K1 i c b) #

FunctorWithIndex [Int] Tree 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: ([Int] -> a -> b) -> Tree a -> Tree b #

imapped :: (Indexable [Int] p, Settable f) => p a (f b) -> Tree a -> f (Tree b) #

FunctorWithIndex (E V3) V3 
Instance details

Defined in Linear.V3

Methods

imap :: (E V3 -> a -> b) -> V3 a -> V3 b #

imapped :: (Indexable (E V3) p, Settable f) => p a (f b) -> V3 a -> f (V3 b) #

FunctorWithIndex (E V2) V2 
Instance details

Defined in Linear.V2

Methods

imap :: (E V2 -> a -> b) -> V2 a -> V2 b #

imapped :: (Indexable (E V2) p, Settable f) => p a (f b) -> V2 a -> f (V2 b) #

FunctorWithIndex (E V1) V1 
Instance details

Defined in Linear.V1

Methods

imap :: (E V1 -> a -> b) -> V1 a -> V1 b #

imapped :: (Indexable (E V1) p, Settable f) => p a (f b) -> V1 a -> f (V1 b) #

FunctorWithIndex i f => FunctorWithIndex [i] (Free f) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: ([i] -> a -> b) -> Free f a -> Free f b #

imapped :: (Indexable [i] p, Settable f0) => p a (f0 b) -> Free f a -> f0 (Free f b) #

FunctorWithIndex i f => FunctorWithIndex [i] (Cofree f) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: ([i] -> a -> b) -> Cofree f a -> Cofree f b #

imapped :: (Indexable [i] p, Settable f0) => p a (f0 b) -> Cofree f a -> f0 (Cofree f b) #

FunctorWithIndex i w => FunctorWithIndex (s, i) (TracedT s w) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: ((s, i) -> a -> b) -> TracedT s w a -> TracedT s w b #

imapped :: (Indexable (s, i) p, Settable f) => p a (f b) -> TracedT s w a -> f (TracedT s w b) #

(FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (Either i j) (Sum f g) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Either i j -> a -> b) -> Sum f g a -> Sum f g b #

imapped :: (Indexable (Either i j) p, Settable f0) => p a (f0 b) -> Sum f g a -> f0 (Sum f g b) #

(FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (Either i j) (Product f g) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Either i j -> a -> b) -> Product f g a -> Product f g b #

imapped :: (Indexable (Either i j) p, Settable f0) => p a (f0 b) -> Product f g a -> f0 (Product f g b) #

(FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (Either i j) (f :+: g) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Either i j -> a -> b) -> (f :+: g) a -> (f :+: g) b #

imapped :: (Indexable (Either i j) p, Settable f0) => p a (f0 b) -> (f :+: g) a -> f0 ((f :+: g) b) #

(FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (Either i j) (f :*: g) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (Either i j -> a -> b) -> (f :*: g) a -> (f :*: g) b #

imapped :: (Indexable (Either i j) p, Settable f0) => p a (f0 b) -> (f :*: g) a -> f0 ((f :*: g) b) #

FunctorWithIndex i m => FunctorWithIndex (e, i) (ReaderT e m) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: ((e, i) -> a -> b) -> ReaderT e m a -> ReaderT e m b #

imapped :: (Indexable (e, i) p, Settable f) => p a (f b) -> ReaderT e m a -> f (ReaderT e m b) #

(FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (i, j) (Compose f g) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: ((i, j) -> a -> b) -> Compose f g a -> Compose f g b #

imapped :: (Indexable (i, j) p, Settable f0) => p a (f0 b) -> Compose f g a -> f0 (Compose f g b) #

(FunctorWithIndex i f, FunctorWithIndex j g) => FunctorWithIndex (i, j) (f :.: g) 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: ((i, j) -> a -> b) -> (f :.: g) a -> (f :.: g) b #

imapped :: (Indexable (i, j) p, Settable f0) => p a (f0 b) -> (f :.: g) a -> f0 ((f :.: g) b) #

class Foldable f => FoldableWithIndex i (f :: * -> *) | f -> i where #

Methods

ifoldMap :: Monoid m => (i -> a -> m) -> f a -> m #

ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> f a -> f (f a) #

ifoldr :: (i -> a -> b -> b) -> b -> f a -> b #

ifoldl :: (i -> b -> a -> b) -> b -> f a -> b #

ifoldr' :: (i -> a -> b -> b) -> b -> f a -> b #

ifoldl' :: (i -> b -> a -> b) -> b -> f a -> b #

Instances
FoldableWithIndex Int [] 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Int -> a -> m) -> [a] -> m #

ifolded :: (Indexable Int p, Contravariant f, Applicative f) => p a (f a) -> [a] -> f [a] #

ifoldr :: (Int -> a -> b -> b) -> b -> [a] -> b #

ifoldl :: (Int -> b -> a -> b) -> b -> [a] -> b #

ifoldr' :: (Int -> a -> b -> b) -> b -> [a] -> b #

ifoldl' :: (Int -> b -> a -> b) -> b -> [a] -> b #

FoldableWithIndex Int ZipList 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Int -> a -> m) -> ZipList a -> m #

ifolded :: (Indexable Int p, Contravariant f, Applicative f) => p a (f a) -> ZipList a -> f (ZipList a) #

ifoldr :: (Int -> a -> b -> b) -> b -> ZipList a -> b #

ifoldl :: (Int -> b -> a -> b) -> b -> ZipList a -> b #

ifoldr' :: (Int -> a -> b -> b) -> b -> ZipList a -> b #

ifoldl' :: (Int -> b -> a -> b) -> b -> ZipList a -> b #

FoldableWithIndex Int NonEmpty 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Int -> a -> m) -> NonEmpty a -> m #

ifolded :: (Indexable Int p, Contravariant f, Applicative f) => p a (f a) -> NonEmpty a -> f (NonEmpty a) #

ifoldr :: (Int -> a -> b -> b) -> b -> NonEmpty a -> b #

ifoldl :: (Int -> b -> a -> b) -> b -> NonEmpty a -> b #

ifoldr' :: (Int -> a -> b -> b) -> b -> NonEmpty a -> b #

ifoldl' :: (Int -> b -> a -> b) -> b -> NonEmpty a -> b #

FoldableWithIndex Int IntMap 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Int -> a -> m) -> IntMap a -> m #

ifolded :: (Indexable Int p, Contravariant f, Applicative f) => p a (f a) -> IntMap a -> f (IntMap a) #

ifoldr :: (Int -> a -> b -> b) -> b -> IntMap a -> b #

ifoldl :: (Int -> b -> a -> b) -> b -> IntMap a -> b #

ifoldr' :: (Int -> a -> b -> b) -> b -> IntMap a -> b #

ifoldl' :: (Int -> b -> a -> b) -> b -> IntMap a -> b #

FoldableWithIndex Int Seq 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Int -> a -> m) -> Seq a -> m #

ifolded :: (Indexable Int p, Contravariant f, Applicative f) => p a (f a) -> Seq a -> f (Seq a) #

ifoldr :: (Int -> a -> b -> b) -> b -> Seq a -> b #

ifoldl :: (Int -> b -> a -> b) -> b -> Seq a -> b #

ifoldr' :: (Int -> a -> b -> b) -> b -> Seq a -> b #

ifoldl' :: (Int -> b -> a -> b) -> b -> Seq a -> b #

FoldableWithIndex Int Vector 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Int -> a -> m) -> Vector a -> m #

ifolded :: (Indexable Int p, Contravariant f, Applicative f) => p a (f a) -> Vector a -> f (Vector a) #

ifoldr :: (Int -> a -> b -> b) -> b -> Vector a -> b #

ifoldl :: (Int -> b -> a -> b) -> b -> Vector a -> b #

ifoldr' :: (Int -> a -> b -> b) -> b -> Vector a -> b #

ifoldl' :: (Int -> b -> a -> b) -> b -> Vector a -> b #

FoldableWithIndex () Maybe 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (() -> a -> m) -> Maybe a -> m #

ifolded :: (Indexable () p, Contravariant f, Applicative f) => p a (f a) -> Maybe a -> f (Maybe a) #

ifoldr :: (() -> a -> b -> b) -> b -> Maybe a -> b #

ifoldl :: (() -> b -> a -> b) -> b -> Maybe a -> b #

ifoldr' :: (() -> a -> b -> b) -> b -> Maybe a -> b #

ifoldl' :: (() -> b -> a -> b) -> b -> Maybe a -> b #

FoldableWithIndex () Par1 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (() -> a -> m) -> Par1 a -> m #

ifolded :: (Indexable () p, Contravariant f, Applicative f) => p a (f a) -> Par1 a -> f (Par1 a) #

ifoldr :: (() -> a -> b -> b) -> b -> Par1 a -> b #

ifoldl :: (() -> b -> a -> b) -> b -> Par1 a -> b #

ifoldr' :: (() -> a -> b -> b) -> b -> Par1 a -> b #

ifoldl' :: (() -> b -> a -> b) -> b -> Par1 a -> b #

FoldableWithIndex () Identity 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (() -> a -> m) -> Identity a -> m #

ifolded :: (Indexable () p, Contravariant f, Applicative f) => p a (f a) -> Identity a -> f (Identity a) #

ifoldr :: (() -> a -> b -> b) -> b -> Identity a -> b #

ifoldl :: (() -> b -> a -> b) -> b -> Identity a -> b #

ifoldr' :: (() -> a -> b -> b) -> b -> Identity a -> b #

ifoldl' :: (() -> b -> a -> b) -> b -> Identity a -> b #

FoldableWithIndex k (Map k) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (k -> a -> m) -> Map k a -> m #

ifolded :: (Indexable k p, Contravariant f, Applicative f) => p a (f a) -> Map k a -> f (Map k a) #

ifoldr :: (k -> a -> b -> b) -> b -> Map k a -> b #

ifoldl :: (k -> b -> a -> b) -> b -> Map k a -> b #

ifoldr' :: (k -> a -> b -> b) -> b -> Map k a -> b #

ifoldl' :: (k -> b -> a -> b) -> b -> Map k a -> b #

FoldableWithIndex k (HashMap k) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (k -> a -> m) -> HashMap k a -> m #

ifolded :: (Indexable k p, Contravariant f, Applicative f) => p a (f a) -> HashMap k a -> f (HashMap k a) #

ifoldr :: (k -> a -> b -> b) -> b -> HashMap k a -> b #

ifoldl :: (k -> b -> a -> b) -> b -> HashMap k a -> b #

ifoldr' :: (k -> a -> b -> b) -> b -> HashMap k a -> b #

ifoldl' :: (k -> b -> a -> b) -> b -> HashMap k a -> b #

FoldableWithIndex k ((,) k) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (k -> a -> m) -> (k, a) -> m #

ifolded :: (Indexable k p, Contravariant f, Applicative f) => p a (f a) -> (k, a) -> f (k, a) #

ifoldr :: (k -> a -> b -> b) -> b -> (k, a) -> b #

ifoldl :: (k -> b -> a -> b) -> b -> (k, a) -> b #

ifoldr' :: (k -> a -> b -> b) -> b -> (k, a) -> b #

ifoldl' :: (k -> b -> a -> b) -> b -> (k, a) -> b #

FoldableWithIndex i (Level i) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (i -> a -> m) -> Level i a -> m #

ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> Level i a -> f (Level i a) #

ifoldr :: (i -> a -> b -> b) -> b -> Level i a -> b #

ifoldl :: (i -> b -> a -> b) -> b -> Level i a -> b #

ifoldr' :: (i -> a -> b -> b) -> b -> Level i a -> b #

ifoldl' :: (i -> b -> a -> b) -> b -> Level i a -> b #

Ix i => FoldableWithIndex i (Array i) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (i -> a -> m) -> Array i a -> m #

ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> Array i a -> f (Array i a) #

ifoldr :: (i -> a -> b -> b) -> b -> Array i a -> b #

ifoldl :: (i -> b -> a -> b) -> b -> Array i a -> b #

ifoldr' :: (i -> a -> b -> b) -> b -> Array i a -> b #

ifoldl' :: (i -> b -> a -> b) -> b -> Array i a -> b #

FoldableWithIndex Void (V1 :: * -> *) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Void -> a -> m) -> V1 a -> m #

ifolded :: (Indexable Void p, Contravariant f, Applicative f) => p a (f a) -> V1 a -> f (V1 a) #

ifoldr :: (Void -> a -> b -> b) -> b -> V1 a -> b #

ifoldl :: (Void -> b -> a -> b) -> b -> V1 a -> b #

ifoldr' :: (Void -> a -> b -> b) -> b -> V1 a -> b #

ifoldl' :: (Void -> b -> a -> b) -> b -> V1 a -> b #

FoldableWithIndex Void (U1 :: * -> *) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Void -> a -> m) -> U1 a -> m #

ifolded :: (Indexable Void p, Contravariant f, Applicative f) => p a (f a) -> U1 a -> f (U1 a) #

ifoldr :: (Void -> a -> b -> b) -> b -> U1 a -> b #

ifoldl :: (Void -> b -> a -> b) -> b -> U1 a -> b #

ifoldr' :: (Void -> a -> b -> b) -> b -> U1 a -> b #

ifoldl' :: (Void -> b -> a -> b) -> b -> U1 a -> b #

FoldableWithIndex Void (Proxy :: * -> *) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Void -> a -> m) -> Proxy a -> m #

ifolded :: (Indexable Void p, Contravariant f, Applicative f) => p a (f a) -> Proxy a -> f (Proxy a) #

ifoldr :: (Void -> a -> b -> b) -> b -> Proxy a -> b #

ifoldl :: (Void -> b -> a -> b) -> b -> Proxy a -> b #

ifoldr' :: (Void -> a -> b -> b) -> b -> Proxy a -> b #

ifoldl' :: (Void -> b -> a -> b) -> b -> Proxy a -> b #

FoldableWithIndex () (Tagged a) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (() -> a0 -> m) -> Tagged a a0 -> m #

ifolded :: (Indexable () p, Contravariant f, Applicative f) => p a0 (f a0) -> Tagged a a0 -> f (Tagged a a0) #

ifoldr :: (() -> a0 -> b -> b) -> b -> Tagged a a0 -> b #

ifoldl :: (() -> b -> a0 -> b) -> b -> Tagged a a0 -> b #

ifoldr' :: (() -> a0 -> b -> b) -> b -> Tagged a a0 -> b #

ifoldl' :: (() -> b -> a0 -> b) -> b -> Tagged a a0 -> b #

FoldableWithIndex i f => FoldableWithIndex i (Reverse f) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (i -> a -> m) -> Reverse f a -> m #

ifolded :: (Indexable i p, Contravariant f0, Applicative f0) => p a (f0 a) -> Reverse f a -> f0 (Reverse f a) #

ifoldr :: (i -> a -> b -> b) -> b -> Reverse f a -> b #

ifoldl :: (i -> b -> a -> b) -> b -> Reverse f a -> b #

ifoldr' :: (i -> a -> b -> b) -> b -> Reverse f a -> b #

ifoldl' :: (i -> b -> a -> b) -> b -> Reverse f a -> b #

FoldableWithIndex i f => FoldableWithIndex i (Rec1 f) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (i -> a -> m) -> Rec1 f a -> m #

ifolded :: (Indexable i p, Contravariant f0, Applicative f0) => p a (f0 a) -> Rec1 f a -> f0 (Rec1 f a) #

ifoldr :: (i -> a -> b -> b) -> b -> Rec1 f a -> b #

ifoldl :: (i -> b -> a -> b) -> b -> Rec1 f a -> b #

ifoldr' :: (i -> a -> b -> b) -> b -> Rec1 f a -> b #

ifoldl' :: (i -> b -> a -> b) -> b -> Rec1 f a -> b #

FoldableWithIndex i m => FoldableWithIndex i (IdentityT m) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m0 => (i -> a -> m0) -> IdentityT m a -> m0 #

ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> IdentityT m a -> f (IdentityT m a) #

ifoldr :: (i -> a -> b -> b) -> b -> IdentityT m a -> b #

ifoldl :: (i -> b -> a -> b) -> b -> IdentityT m a -> b #

ifoldr' :: (i -> a -> b -> b) -> b -> IdentityT m a -> b #

ifoldl' :: (i -> b -> a -> b) -> b -> IdentityT m a -> b #

FoldableWithIndex i f => FoldableWithIndex i (Backwards f) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (i -> a -> m) -> Backwards f a -> m #

ifolded :: (Indexable i p, Contravariant f0, Applicative f0) => p a (f0 a) -> Backwards f a -> f0 (Backwards f a) #

ifoldr :: (i -> a -> b -> b) -> b -> Backwards f a -> b #

ifoldl :: (i -> b -> a -> b) -> b -> Backwards f a -> b #

ifoldr' :: (i -> a -> b -> b) -> b -> Backwards f a -> b #

ifoldl' :: (i -> b -> a -> b) -> b -> Backwards f a -> b #

FoldableWithIndex i (Magma i t b) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (i -> a -> m) -> Magma i t b a -> m #

ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> Magma i t b a -> f (Magma i t b a) #

ifoldr :: (i -> a -> b0 -> b0) -> b0 -> Magma i t b a -> b0 #

ifoldl :: (i -> b0 -> a -> b0) -> b0 -> Magma i t b a -> b0 #

ifoldr' :: (i -> a -> b0 -> b0) -> b0 -> Magma i t b a -> b0 #

ifoldl' :: (i -> b0 -> a -> b0) -> b0 -> Magma i t b a -> b0 #

FoldableWithIndex Void (K1 i c :: * -> *) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Void -> a -> m) -> K1 i c a -> m #

ifolded :: (Indexable Void p, Contravariant f, Applicative f) => p a (f a) -> K1 i c a -> f (K1 i c a) #

ifoldr :: (Void -> a -> b -> b) -> b -> K1 i c a -> b #

ifoldl :: (Void -> b -> a -> b) -> b -> K1 i c a -> b #

ifoldr' :: (Void -> a -> b -> b) -> b -> K1 i c a -> b #

ifoldl' :: (Void -> b -> a -> b) -> b -> K1 i c a -> b #

FoldableWithIndex [Int] Tree 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => ([Int] -> a -> m) -> Tree a -> m #

ifolded :: (Indexable [Int] p, Contravariant f, Applicative f) => p a (f a) -> Tree a -> f (Tree a) #

ifoldr :: ([Int] -> a -> b -> b) -> b -> Tree a -> b #

ifoldl :: ([Int] -> b -> a -> b) -> b -> Tree a -> b #

ifoldr' :: ([Int] -> a -> b -> b) -> b -> Tree a -> b #

ifoldl' :: ([Int] -> b -> a -> b) -> b -> Tree a -> b #

FoldableWithIndex (E V3) V3 
Instance details

Defined in Linear.V3

Methods

ifoldMap :: Monoid m => (E V3 -> a -> m) -> V3 a -> m #

ifolded :: (Indexable (E V3) p, Contravariant f, Applicative f) => p a (f a) -> V3 a -> f (V3 a) #

ifoldr :: (E V3 -> a -> b -> b) -> b -> V3 a -> b #

ifoldl :: (E V3 -> b -> a -> b) -> b -> V3 a -> b #

ifoldr' :: (E V3 -> a -> b -> b) -> b -> V3 a -> b #

ifoldl' :: (E V3 -> b -> a -> b) -> b -> V3 a -> b #

FoldableWithIndex (E V2) V2 
Instance details

Defined in Linear.V2

Methods

ifoldMap :: Monoid m => (E V2 -> a -> m) -> V2 a -> m #

ifolded :: (Indexable (E V2) p, Contravariant f, Applicative f) => p a (f a) -> V2 a -> f (V2 a) #

ifoldr :: (E V2 -> a -> b -> b) -> b -> V2 a -> b #

ifoldl :: (E V2 -> b -> a -> b) -> b -> V2 a -> b #

ifoldr' :: (E V2 -> a -> b -> b) -> b -> V2 a -> b #

ifoldl' :: (E V2 -> b -> a -> b) -> b -> V2 a -> b #

FoldableWithIndex (E V1) V1 
Instance details

Defined in Linear.V1

Methods

ifoldMap :: Monoid m => (E V1 -> a -> m) -> V1 a -> m #

ifolded :: (Indexable (E V1) p, Contravariant f, Applicative f) => p a (f a) -> V1 a -> f (V1 a) #

ifoldr :: (E V1 -> a -> b -> b) -> b -> V1 a -> b #

ifoldl :: (E V1 -> b -> a -> b) -> b -> V1 a -> b #

ifoldr' :: (E V1 -> a -> b -> b) -> b -> V1 a -> b #

ifoldl' :: (E V1 -> b -> a -> b) -> b -> V1 a -> b #

FoldableWithIndex i f => FoldableWithIndex [i] (Free f) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => ([i] -> a -> m) -> Free f a -> m #

ifolded :: (Indexable [i] p, Contravariant f0, Applicative f0) => p a (f0 a) -> Free f a -> f0 (Free f a) #

ifoldr :: ([i] -> a -> b -> b) -> b -> Free f a -> b #

ifoldl :: ([i] -> b -> a -> b) -> b -> Free f a -> b #

ifoldr' :: ([i] -> a -> b -> b) -> b -> Free f a -> b #

ifoldl' :: ([i] -> b -> a -> b) -> b -> Free f a -> b #

FoldableWithIndex i f => FoldableWithIndex [i] (Cofree f) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => ([i] -> a -> m) -> Cofree f a -> m #

ifolded :: (Indexable [i] p, Contravariant f0, Applicative f0) => p a (f0 a) -> Cofree f a -> f0 (Cofree f a) #

ifoldr :: ([i] -> a -> b -> b) -> b -> Cofree f a -> b #

ifoldl :: ([i] -> b -> a -> b) -> b -> Cofree f a -> b #

ifoldr' :: ([i] -> a -> b -> b) -> b -> Cofree f a -> b #

ifoldl' :: ([i] -> b -> a -> b) -> b -> Cofree f a -> b #

(FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (Either i j) (Sum f g) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Either i j -> a -> m) -> Sum f g a -> m #

ifolded :: (Indexable (Either i j) p, Contravariant f0, Applicative f0) => p a (f0 a) -> Sum f g a -> f0 (Sum f g a) #

ifoldr :: (Either i j -> a -> b -> b) -> b -> Sum f g a -> b #

ifoldl :: (Either i j -> b -> a -> b) -> b -> Sum f g a -> b #

ifoldr' :: (Either i j -> a -> b -> b) -> b -> Sum f g a -> b #

ifoldl' :: (Either i j -> b -> a -> b) -> b -> Sum f g a -> b #

(FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (Either i j) (Product f g) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Either i j -> a -> m) -> Product f g a -> m #

ifolded :: (Indexable (Either i j) p, Contravariant f0, Applicative f0) => p a (f0 a) -> Product f g a -> f0 (Product f g a) #

ifoldr :: (Either i j -> a -> b -> b) -> b -> Product f g a -> b #

ifoldl :: (Either i j -> b -> a -> b) -> b -> Product f g a -> b #

ifoldr' :: (Either i j -> a -> b -> b) -> b -> Product f g a -> b #

ifoldl' :: (Either i j -> b -> a -> b) -> b -> Product f g a -> b #

(FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (Either i j) (f :+: g) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Either i j -> a -> m) -> (f :+: g) a -> m #

ifolded :: (Indexable (Either i j) p, Contravariant f0, Applicative f0) => p a (f0 a) -> (f :+: g) a -> f0 ((f :+: g) a) #

ifoldr :: (Either i j -> a -> b -> b) -> b -> (f :+: g) a -> b #

ifoldl :: (Either i j -> b -> a -> b) -> b -> (f :+: g) a -> b #

ifoldr' :: (Either i j -> a -> b -> b) -> b -> (f :+: g) a -> b #

ifoldl' :: (Either i j -> b -> a -> b) -> b -> (f :+: g) a -> b #

(FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (Either i j) (f :*: g) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (Either i j -> a -> m) -> (f :*: g) a -> m #

ifolded :: (Indexable (Either i j) p, Contravariant f0, Applicative f0) => p a (f0 a) -> (f :*: g) a -> f0 ((f :*: g) a) #

ifoldr :: (Either i j -> a -> b -> b) -> b -> (f :*: g) a -> b #

ifoldl :: (Either i j -> b -> a -> b) -> b -> (f :*: g) a -> b #

ifoldr' :: (Either i j -> a -> b -> b) -> b -> (f :*: g) a -> b #

ifoldl' :: (Either i j -> b -> a -> b) -> b -> (f :*: g) a -> b #

(FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (i, j) (Compose f g) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => ((i, j) -> a -> m) -> Compose f g a -> m #

ifolded :: (Indexable (i, j) p, Contravariant f0, Applicative f0) => p a (f0 a) -> Compose f g a -> f0 (Compose f g a) #

ifoldr :: ((i, j) -> a -> b -> b) -> b -> Compose f g a -> b #

ifoldl :: ((i, j) -> b -> a -> b) -> b -> Compose f g a -> b #

ifoldr' :: ((i, j) -> a -> b -> b) -> b -> Compose f g a -> b #

ifoldl' :: ((i, j) -> b -> a -> b) -> b -> Compose f g a -> b #

(FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (i, j) (f :.: g) 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => ((i, j) -> a -> m) -> (f :.: g) a -> m #

ifolded :: (Indexable (i, j) p, Contravariant f0, Applicative f0) => p a (f0 a) -> (f :.: g) a -> f0 ((f :.: g) a) #

ifoldr :: ((i, j) -> a -> b -> b) -> b -> (f :.: g) a -> b #

ifoldl :: ((i, j) -> b -> a -> b) -> b -> (f :.: g) a -> b #

ifoldr' :: ((i, j) -> a -> b -> b) -> b -> (f :.: g) a -> b #

ifoldl' :: ((i, j) -> b -> a -> b) -> b -> (f :.: g) a -> b #

type IndexedGetting i m s a = Indexed i a (Const m a) -> s -> Const m s #

type Getting r s a = (a -> Const r a) -> s -> Const r s #

type Accessing (p :: * -> * -> *) m s a = p a (Const m a) -> s -> Const m s #

data Identical (a :: k) (b :: k1) (s :: k) (t :: k1) :: forall k k1. k -> k1 -> k -> k1 -> * where #

Constructors

Identical :: Identical a b a b 

type AnEquality' (s :: k2) (a :: k2) = AnEquality s s a a #

type AnEquality (s :: k1) (t :: k2) (a :: k1) (b :: k2) = Identical a (Proxy b) a (Proxy b) -> Identical a (Proxy b) s (Proxy t) #

class AsEmpty a where #

Methods

_Empty :: Prism' a () #

Instances
AsEmpty Ordering 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' Ordering () #

AsEmpty () 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' () () #

AsEmpty ByteString 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' ByteString () #

AsEmpty ByteString 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' ByteString () #

AsEmpty Text 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' Text () #

AsEmpty Text 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' Text () #

AsEmpty Event 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' Event () #

AsEmpty All 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' All () #

AsEmpty Any 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' Any () #

AsEmpty IntSet 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' IntSet () #

AsEmpty ColourMap 
Instance details

Defined in Plots.Style

Methods

_Empty :: Prism' ColourMap () #

AsEmpty [a] 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' [a] () #

AsEmpty (Maybe a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (Maybe a) () #

AsEmpty (First a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (First a) () #

AsEmpty (Last a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (Last a) () #

AsEmpty a => AsEmpty (Dual a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (Dual a) () #

(Eq a, Num a) => AsEmpty (Sum a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (Sum a) () #

(Eq a, Num a) => AsEmpty (Product a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (Product a) () #

AsEmpty (IntMap a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (IntMap a) () #

AsEmpty (Seq a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (Seq a) () #

AsEmpty (Set a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (Set a) () #

Unbox a => AsEmpty (Vector a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (Vector a) () #

Storable a => AsEmpty (Vector a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (Vector a) () #

AsEmpty (Vector a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (Vector a) () #

AsEmpty (HashSet a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (HashSet a) () #

AsEmpty (Clip n) 
Instance details

Defined in Diagrams.TwoD.Path

Methods

_Empty :: Prism' (Clip n) () #

(AsEmpty a, AsEmpty b) => AsEmpty (a, b) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (a, b) () #

AsEmpty (Map k a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (Map k a) () #

(Metric v, OrderedField n) => AsEmpty (Trail v n) 
Instance details

Defined in Diagrams.Trail

Methods

_Empty :: Prism' (Trail v n) () #

AsEmpty (BoundingBox v n) 
Instance details

Defined in Diagrams.BoundingBox

Methods

_Empty :: Prism' (BoundingBox v n) () #

AsEmpty (Path v n) 
Instance details

Defined in Diagrams.Path

Methods

_Empty :: Prism' (Path v n) () #

AsEmpty (HashMap k a) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (HashMap k a) () #

(AsEmpty a, AsEmpty b, AsEmpty c) => AsEmpty (a, b, c) 
Instance details

Defined in Control.Lens.Empty

Methods

_Empty :: Prism' (a, b, c) () #

(Metric v, OrderedField n) => AsEmpty (Trail' Line v n) 
Instance details

Defined in Diagrams.Trail

Methods

_Empty :: Prism' (Trail' Line v n) () #

class Each s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Methods

each :: Traversal s t a b #

Instances
(a ~ Word8, b ~ Word8) => Each ByteString ByteString a b 
Instance details

Defined in Control.Lens.Each

(a ~ Word8, b ~ Word8) => Each ByteString ByteString a b 
Instance details

Defined in Control.Lens.Each

(a ~ Char, b ~ Char) => Each Text Text a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal Text Text a b #

(a ~ Char, b ~ Char) => Each Text Text a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal Text Text a b #

Each Name Name AName AName 
Instance details

Defined in Diagrams.Core.Names

Methods

each :: Traversal Name Name AName AName #

Each ColourMap ColourMap (AlphaColour Double) (AlphaColour Double) 
Instance details

Defined in Plots.Style

Each [a] [b] a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal [a] [b] a b #

Each (Maybe a) (Maybe b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (Maybe a) (Maybe b) a b #

Each (Identity a) (Identity b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (Identity a) (Identity b) a b #

Each (Complex a) (Complex b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (Complex a) (Complex b) a b #

Each (NonEmpty a) (NonEmpty b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (NonEmpty a) (NonEmpty b) a b #

Each (IntMap a) (IntMap b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (IntMap a) (IntMap b) a b #

Each (Tree a) (Tree b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (Tree a) (Tree b) a b #

Each (Seq a) (Seq b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (Seq a) (Seq b) a b #

(Unbox a, Unbox b) => Each (Vector a) (Vector b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (Vector a) (Vector b) a b #

Each (V3 a) (V3 b) a b 
Instance details

Defined in Linear.V3

Methods

each :: Traversal (V3 a) (V3 b) a b #

Each (V2 a) (V2 b) a b 
Instance details

Defined in Linear.V2

Methods

each :: Traversal (V2 a) (V2 b) a b #

(Storable a, Storable b) => Each (Vector a) (Vector b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (Vector a) (Vector b) a b #

Each (Vector a) (Vector b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (Vector a) (Vector b) a b #

(Prim a, Prim b) => Each (Vector a) (Vector b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (Vector a) (Vector b) a b #

Each (V1 a) (V1 b) a b 
Instance details

Defined in Linear.V1

Methods

each :: Traversal (V1 a) (V1 b) a b #

(a ~ a', b ~ b') => Each (a, a') (b, b') a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (a, a') (b, b') a b #

c ~ d => Each (Map c a) (Map d b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (Map c a) (Map d b) a b #

(Ix i, IArray UArray a, IArray UArray b, i ~ j) => Each (UArray i a) (UArray j b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (UArray i a) (UArray j b) a b #

(Ix i, i ~ j) => Each (Array i a) (Array j b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (Array i a) (Array j b) a b #

Traversable f => Each (Point f a) (Point f b) a b 
Instance details

Defined in Linear.Affine

Methods

each :: Traversal (Point f a) (Point f b) a b #

c ~ d => Each (HashMap c a) (HashMap d b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (HashMap c a) (HashMap d b) a b #

Each (Path v n) (Path v' n') (Located (Trail v n)) (Located (Trail v' n')) 
Instance details

Defined in Diagrams.Path

Methods

each :: Traversal (Path v n) (Path v' n') (Located (Trail v n)) (Located (Trail v' n')) #

(Additive v', Foldable v', Ord n') => Each (BoundingBox v n) (BoundingBox v' n') (Point v n) (Point v' n') 
Instance details

Defined in Diagrams.BoundingBox

Methods

each :: Traversal (BoundingBox v n) (BoundingBox v' n') (Point v n) (Point v' n') #

Each (Style v n) (Style v' n') (Attribute v n) (Attribute v' n') 
Instance details

Defined in Diagrams.Core.Style

Methods

each :: Traversal (Style v n) (Style v' n') (Attribute v n) (Attribute v' n') #

(a ~ a2, a ~ a3, b ~ b2, b ~ b3) => Each (a, a2, a3) (b, b2, b3) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (a, a2, a3) (b, b2, b3) a b #

(a ~ a2, a ~ a3, a ~ a4, b ~ b2, b ~ b3, b ~ b4) => Each (a, a2, a3, a4) (b, b2, b3, b4) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (a, a2, a3, a4) (b, b2, b3, b4) a b #

(a ~ a2, a ~ a3, a ~ a4, a ~ a5, b ~ b2, b ~ b3, b ~ b4, b ~ b5) => Each (a, a2, a3, a4, a5) (b, b2, b3, b4, b5) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (a, a2, a3, a4, a5) (b, b2, b3, b4, b5) a b #

(a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, b ~ b2, b ~ b3, b ~ b4, b ~ b5, b ~ b6) => Each (a, a2, a3, a4, a5, a6) (b, b2, b3, b4, b5, b6) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (a, a2, a3, a4, a5, a6) (b, b2, b3, b4, b5, b6) a b #

(a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, a ~ a7, b ~ b2, b ~ b3, b ~ b4, b ~ b5, b ~ b6, b ~ b7) => Each (a, a2, a3, a4, a5, a6, a7) (b, b2, b3, b4, b5, b6, b7) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (a, a2, a3, a4, a5, a6, a7) (b, b2, b3, b4, b5, b6, b7) a b #

(a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, a ~ a7, a ~ a8, b ~ b2, b ~ b3, b ~ b4, b ~ b5, b ~ b6, b ~ b7, b ~ b8) => Each (a, a2, a3, a4, a5, a6, a7, a8) (b, b2, b3, b4, b5, b6, b7, b8) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (a, a2, a3, a4, a5, a6, a7, a8) (b, b2, b3, b4, b5, b6, b7, b8) a b #

(a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, a ~ a7, a ~ a8, a ~ a9, b ~ b2, b ~ b3, b ~ b4, b ~ b5, b ~ b6, b ~ b7, b ~ b8, b ~ b9) => Each (a, a2, a3, a4, a5, a6, a7, a8, a9) (b, b2, b3, b4, b5, b6, b7, b8, b9) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (a, a2, a3, a4, a5, a6, a7, a8, a9) (b, b2, b3, b4, b5, b6, b7, b8, b9) a b #

class Snoc s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Minimal complete definition

_Snoc

Methods

_Snoc :: Prism s t (s, a) (t, b) #

Instances
Snoc ByteString ByteString Word8 Word8 
Instance details

Defined in Control.Lens.Cons

Snoc ByteString ByteString Word8 Word8 
Instance details

Defined in Control.Lens.Cons

Snoc Text Text Char Char 
Instance details

Defined in Control.Lens.Cons

Methods

_Snoc :: Prism Text Text (Text, Char) (Text, Char) #

Snoc Text Text Char Char 
Instance details

Defined in Control.Lens.Cons

Methods

_Snoc :: Prism Text Text (Text, Char) (Text, Char) #

Snoc [a] [b] a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Snoc :: Prism [a] [b] ([a], a) ([b], b) #

Snoc (ZipList a) (ZipList b) a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Snoc :: Prism (ZipList a) (ZipList b) (ZipList a, a) (ZipList b, b) #

Snoc (Seq a) (Seq b) a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Snoc :: Prism (Seq a) (Seq b) (Seq a, a) (Seq b, b) #

(Unbox a, Unbox b) => Snoc (Vector a) (Vector b) a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Snoc :: Prism (Vector a) (Vector b) (Vector a, a) (Vector b, b) #

(Storable a, Storable b) => Snoc (Vector a) (Vector b) a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Snoc :: Prism (Vector a) (Vector b) (Vector a, a) (Vector b, b) #

Snoc (Vector a) (Vector b) a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Snoc :: Prism (Vector a) (Vector b) (Vector a, a) (Vector b, b) #

(Prim a, Prim b) => Snoc (Vector a) (Vector b) a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Snoc :: Prism (Vector a) (Vector b) (Vector a, a) (Vector b, b) #

Snoc (Path v n) (Path v' n') (Located (Trail v n)) (Located (Trail v' n')) 
Instance details

Defined in Diagrams.Path

Methods

_Snoc :: Prism (Path v n) (Path v' n') (Path v n, Located (Trail v n)) (Path v' n', Located (Trail v' n')) #

(Metric v, OrderedField n, Metric u, OrderedField n') => Snoc (SegTree v n) (SegTree u n') (Segment Closed v n) (Segment Closed u n') 
Instance details

Defined in Diagrams.Trail

Methods

_Snoc :: Prism (SegTree v n) (SegTree u n') (SegTree v n, Segment Closed v n) (SegTree u n', Segment Closed u n') #

(Metric v, OrderedField n, Metric u, OrderedField n') => Snoc (Trail' Line v n) (Trail' Line u n') (Segment Closed v n) (Segment Closed u n') 
Instance details

Defined in Diagrams.Trail

Methods

_Snoc :: Prism (Trail' Line v n) (Trail' Line u n') (Trail' Line v n, Segment Closed v n) (Trail' Line u n', Segment Closed u n') #

class Cons s t a b | s -> a, t -> b, s b -> t, t a -> s where #

Minimal complete definition

_Cons

Methods

_Cons :: Prism s t (a, s) (b, t) #

Instances
Cons ByteString ByteString Word8 Word8 
Instance details

Defined in Control.Lens.Cons

Cons ByteString ByteString Word8 Word8 
Instance details

Defined in Control.Lens.Cons

Cons Text Text Char Char 
Instance details

Defined in Control.Lens.Cons

Methods

_Cons :: Prism Text Text (Char, Text) (Char, Text) #

Cons Text Text Char Char 
Instance details

Defined in Control.Lens.Cons

Methods

_Cons :: Prism Text Text (Char, Text) (Char, Text) #

Cons [a] [b] a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Cons :: Prism [a] [b] (a, [a]) (b, [b]) #

Cons (ZipList a) (ZipList b) a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Cons :: Prism (ZipList a) (ZipList b) (a, ZipList a) (b, ZipList b) #

Cons (Seq a) (Seq b) a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Cons :: Prism (Seq a) (Seq b) (a, Seq a) (b, Seq b) #

(Unbox a, Unbox b) => Cons (Vector a) (Vector b) a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Cons :: Prism (Vector a) (Vector b) (a, Vector a) (b, Vector b) #

(Storable a, Storable b) => Cons (Vector a) (Vector b) a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Cons :: Prism (Vector a) (Vector b) (a, Vector a) (b, Vector b) #

Cons (Vector a) (Vector b) a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Cons :: Prism (Vector a) (Vector b) (a, Vector a) (b, Vector b) #

(Prim a, Prim b) => Cons (Vector a) (Vector b) a b 
Instance details

Defined in Control.Lens.Cons

Methods

_Cons :: Prism (Vector a) (Vector b) (a, Vector a) (b, Vector b) #

Cons (Path v n) (Path v' n') (Located (Trail v n)) (Located (Trail v' n')) 
Instance details

Defined in Diagrams.Path

Methods

_Cons :: Prism (Path v n) (Path v' n') (Located (Trail v n), Path v n) (Located (Trail v' n'), Path v' n') #

(Metric v, OrderedField n, Metric u, OrderedField n') => Cons (SegTree v n) (SegTree u n') (Segment Closed v n) (Segment Closed u n') 
Instance details

Defined in Diagrams.Trail

Methods

_Cons :: Prism (SegTree v n) (SegTree u n') (Segment Closed v n, SegTree v n) (Segment Closed u n', SegTree u n') #

(Metric v, OrderedField n, Metric u, OrderedField n') => Cons (Trail' Line v n) (Trail' Line u n') (Segment Closed v n) (Segment Closed u n') 
Instance details

Defined in Diagrams.Trail

Methods

_Cons :: Prism (Trail' Line v n) (Trail' Line u n') (Segment Closed v n, Trail' Line v n) (Segment Closed u n', Trail' Line u n') #

class Ixed m where #

Methods

ix :: Index m -> Traversal' m (IxValue m) #

Instances
Ixed ByteString 
Instance details

Defined in Control.Lens.At

Ixed ByteString 
Instance details

Defined in Control.Lens.At

Ixed Text 
Instance details

Defined in Control.Lens.At

Ixed Text 
Instance details

Defined in Control.Lens.At

Ixed IntSet 
Instance details

Defined in Control.Lens.At

Ixed ColourMap 
Instance details

Defined in Plots.Style

Ixed [a] 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index [a] -> Traversal' [a] (IxValue [a]) #

Ixed (Maybe a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (Maybe a) -> Traversal' (Maybe a) (IxValue (Maybe a)) #

Ixed (Identity a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (Identity a) -> Traversal' (Identity a) (IxValue (Identity a)) #

Ixed (NonEmpty a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (NonEmpty a) -> Traversal' (NonEmpty a) (IxValue (NonEmpty a)) #

Ixed (IntMap a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (IntMap a) -> Traversal' (IntMap a) (IxValue (IntMap a)) #

Ixed (Tree a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (Tree a) -> Traversal' (Tree a) (IxValue (Tree a)) #

Ixed (Seq a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (Seq a) -> Traversal' (Seq a) (IxValue (Seq a)) #

Ord k => Ixed (Set k) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (Set k) -> Traversal' (Set k) (IxValue (Set k)) #

Unbox a => Ixed (Vector a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (Vector a) -> Traversal' (Vector a) (IxValue (Vector a)) #

Ixed (V3 a) 
Instance details

Defined in Linear.V3

Methods

ix :: Index (V3 a) -> Traversal' (V3 a) (IxValue (V3 a)) #

Ixed (V2 a) 
Instance details

Defined in Linear.V2

Methods

ix :: Index (V2 a) -> Traversal' (V2 a) (IxValue (V2 a)) #

Storable a => Ixed (Vector a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (Vector a) -> Traversal' (Vector a) (IxValue (Vector a)) #

Ixed (Vector a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (Vector a) -> Traversal' (Vector a) (IxValue (Vector a)) #

Prim a => Ixed (Vector a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (Vector a) -> Traversal' (Vector a) (IxValue (Vector a)) #

(Eq k, Hashable k) => Ixed (HashSet k) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (HashSet k) -> Traversal' (HashSet k) (IxValue (HashSet k)) #

Ixed (V1 a) 
Instance details

Defined in Linear.V1

Methods

ix :: Index (V1 a) -> Traversal' (V1 a) (IxValue (V1 a)) #

Eq e => Ixed (e -> a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (e -> a) -> Traversal' (e -> a) (IxValue (e -> a)) #

a ~ a2 => Ixed (a, a2) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (a, a2) -> Traversal' (a, a2) (IxValue (a, a2)) #

Ord k => Ixed (Map k a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (Map k a) -> Traversal' (Map k a) (IxValue (Map k a)) #

(IArray UArray e, Ix i) => Ixed (UArray i e) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (UArray i e) -> Traversal' (UArray i e) (IxValue (UArray i e)) #

Ix i => Ixed (Array i e) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (Array i e) -> Traversal' (Array i e) (IxValue (Array i e)) #

Ixed (Style v n) 
Instance details

Defined in Diagrams.Core.Style

Methods

ix :: Index (Style v n) -> Traversal' (Style v n) (IxValue (Style v n)) #

Ixed (f a) => Ixed (Point f a) 
Instance details

Defined in Linear.Affine

Methods

ix :: Index (Point f a) -> Traversal' (Point f a) (IxValue (Point f a)) #

(Eq k, Hashable k) => Ixed (HashMap k a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (HashMap k a) -> Traversal' (HashMap k a) (IxValue (HashMap k a)) #

(a ~ a2, a ~ a3) => Ixed (a, a2, a3) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (a, a2, a3) -> Traversal' (a, a2, a3) (IxValue (a, a2, a3)) #

(a ~ a2, a ~ a3, a ~ a4) => Ixed (a, a2, a3, a4) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (a, a2, a3, a4) -> Traversal' (a, a2, a3, a4) (IxValue (a, a2, a3, a4)) #

(a ~ a2, a ~ a3, a ~ a4, a ~ a5) => Ixed (a, a2, a3, a4, a5) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (a, a2, a3, a4, a5) -> Traversal' (a, a2, a3, a4, a5) (IxValue (a, a2, a3, a4, a5)) #

(a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6) => Ixed (a, a2, a3, a4, a5, a6) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (a, a2, a3, a4, a5, a6) -> Traversal' (a, a2, a3, a4, a5, a6) (IxValue (a, a2, a3, a4, a5, a6)) #

(a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, a ~ a7) => Ixed (a, a2, a3, a4, a5, a6, a7) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (a, a2, a3, a4, a5, a6, a7) -> Traversal' (a, a2, a3, a4, a5, a6, a7) (IxValue (a, a2, a3, a4, a5, a6, a7)) #

(a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, a ~ a7, a ~ a8) => Ixed (a, a2, a3, a4, a5, a6, a7, a8) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (a, a2, a3, a4, a5, a6, a7, a8) -> Traversal' (a, a2, a3, a4, a5, a6, a7, a8) (IxValue (a, a2, a3, a4, a5, a6, a7, a8)) #

(a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, a ~ a7, a ~ a8, a ~ a9) => Ixed (a, a2, a3, a4, a5, a6, a7, a8, a9) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (a, a2, a3, a4, a5, a6, a7, a8, a9) -> Traversal' (a, a2, a3, a4, a5, a6, a7, a8, a9) (IxValue (a, a2, a3, a4, a5, a6, a7, a8, a9)) #

type family IxValue m :: * #

Instances
type IxValue ByteString 
Instance details

Defined in Control.Lens.At

type IxValue ByteString 
Instance details

Defined in Control.Lens.At

type IxValue Text 
Instance details

Defined in Control.Lens.At

type IxValue Text 
Instance details

Defined in Control.Lens.At

type IxValue IntSet 
Instance details

Defined in Control.Lens.At

type IxValue IntSet = ()
type IxValue ColourMap 
Instance details

Defined in Plots.Style

type IxValue [a] 
Instance details

Defined in Control.Lens.At

type IxValue [a] = a
type IxValue (Maybe a) 
Instance details

Defined in Control.Lens.At

type IxValue (Maybe a) = a
type IxValue (Identity a) 
Instance details

Defined in Control.Lens.At

type IxValue (Identity a) = a
type IxValue (NonEmpty a) 
Instance details

Defined in Control.Lens.At

type IxValue (NonEmpty a) = a
type IxValue (IntMap a) 
Instance details

Defined in Control.Lens.At

type IxValue (IntMap a) = a
type IxValue (Tree a) 
Instance details

Defined in Control.Lens.At

type IxValue (Tree a) = a
type IxValue (Seq a) 
Instance details

Defined in Control.Lens.At

type IxValue (Seq a) = a
type IxValue (Set k) 
Instance details

Defined in Control.Lens.At

type IxValue (Set k) = ()
type IxValue (Vector a) 
Instance details

Defined in Control.Lens.At

type IxValue (Vector a) = a
type IxValue (V3 a) 
Instance details

Defined in Linear.V3

type IxValue (V3 a) = a
type IxValue (V2 a) 
Instance details

Defined in Linear.V2

type IxValue (V2 a) = a
type IxValue (Vector a) 
Instance details

Defined in Control.Lens.At

type IxValue (Vector a) = a
type IxValue (Vector a) 
Instance details

Defined in Control.Lens.At

type IxValue (Vector a) = a
type IxValue (Vector a) 
Instance details

Defined in Control.Lens.At

type IxValue (Vector a) = a
type IxValue (HashSet k) 
Instance details

Defined in Control.Lens.At

type IxValue (HashSet k) = ()
type IxValue (V1 a) 
Instance details

Defined in Linear.V1

type IxValue (V1 a) = a
type IxValue (e -> a) 
Instance details

Defined in Control.Lens.At

type IxValue (e -> a) = a
type IxValue (a, a2) 
Instance details

Defined in Control.Lens.At

type IxValue (a, a2) = a
type IxValue (Map k a) 
Instance details

Defined in Control.Lens.At

type IxValue (Map k a) = a
type IxValue (UArray i e) 
Instance details

Defined in Control.Lens.At

type IxValue (UArray i e) = e
type IxValue (Array i e) 
Instance details

Defined in Control.Lens.At

type IxValue (Array i e) = e
type IxValue (Style v n) 
Instance details

Defined in Diagrams.Core.Style

type IxValue (Style v n) = Attribute v n
type IxValue (Point f a) 
Instance details

Defined in Linear.Affine

type IxValue (Point f a) = IxValue (f a)
type IxValue (HashMap k a) 
Instance details

Defined in Control.Lens.At

type IxValue (HashMap k a) = a
type IxValue (a, a2, a3) 
Instance details

Defined in Control.Lens.At

type IxValue (a, a2, a3) = a
type IxValue (a, a2, a3, a4) 
Instance details

Defined in Control.Lens.At

type IxValue (a, a2, a3, a4) = a
type IxValue (a, a2, a3, a4, a5) 
Instance details

Defined in Control.Lens.At

type IxValue (a, a2, a3, a4, a5) = a
type IxValue (a, a2, a3, a4, a5, a6) 
Instance details

Defined in Control.Lens.At

type IxValue (a, a2, a3, a4, a5, a6) = a
type IxValue (a, a2, a3, a4, a5, a6, a7) 
Instance details

Defined in Control.Lens.At

type IxValue (a, a2, a3, a4, a5, a6, a7) = a
type IxValue (a, a2, a3, a4, a5, a6, a7, a8) 
Instance details

Defined in Control.Lens.At

type IxValue (a, a2, a3, a4, a5, a6, a7, a8) = a
type IxValue (a, a2, a3, a4, a5, a6, a7, a8, a9) 
Instance details

Defined in Control.Lens.At

type IxValue (a, a2, a3, a4, a5, a6, a7, a8, a9) = a

type family Index s :: * #

Instances
type Index ByteString 
Instance details

Defined in Control.Lens.At

type Index ByteString 
Instance details

Defined in Control.Lens.At

type Index Text 
Instance details

Defined in Control.Lens.At

type Index Text = Int
type Index Text 
Instance details

Defined in Control.Lens.At

type Index IntSet 
Instance details

Defined in Control.Lens.At

type Index ColourMap 
Instance details

Defined in Plots.Style

type Index [a] 
Instance details

Defined in Control.Lens.At

type Index [a] = Int
type Index (Maybe a) 
Instance details

Defined in Control.Lens.At

type Index (Maybe a) = ()
type Index (Identity a) 
Instance details

Defined in Control.Lens.At

type Index (Identity a) = ()
type Index (Complex a) 
Instance details

Defined in Control.Lens.At

type Index (Complex a) = Int
type Index (NonEmpty a) 
Instance details

Defined in Control.Lens.At

type Index (NonEmpty a) = Int
type Index (IntMap a) 
Instance details

Defined in Control.Lens.At

type Index (IntMap a) = Int
type Index (Tree a) 
Instance details

Defined in Control.Lens.At

type Index (Tree a) = [Int]
type Index (Seq a) 
Instance details

Defined in Control.Lens.At

type Index (Seq a) = Int
type Index (Set a) 
Instance details

Defined in Control.Lens.At

type Index (Set a) = a
type Index (Vector a) 
Instance details

Defined in Control.Lens.At

type Index (Vector a) = Int
type Index (V3 a) 
Instance details

Defined in Linear.V3

type Index (V3 a) = E V3
type Index (V2 a) 
Instance details

Defined in Linear.V2

type Index (V2 a) = E V2
type Index (Vector a) 
Instance details

Defined in Control.Lens.At

type Index (Vector a) = Int
type Index (Vector a) 
Instance details

Defined in Control.Lens.At

type Index (Vector a) = Int
type Index (Vector a) 
Instance details

Defined in Control.Lens.At

type Index (Vector a) = Int
type Index (HashSet a) 
Instance details

Defined in Control.Lens.At

type Index (HashSet a) = a
type Index (V1 a) 
Instance details

Defined in Linear.V1

type Index (V1 a) = E V1
type Index (e -> a) 
Instance details

Defined in Control.Lens.At

type Index (e -> a) = e
type Index (a, b) 
Instance details

Defined in Control.Lens.At

type Index (a, b) = Int
type Index (Map k a) 
Instance details

Defined in Control.Lens.At

type Index (Map k a) = k
type Index (UArray i e) 
Instance details

Defined in Control.Lens.At

type Index (UArray i e) = i
type Index (Array i e) 
Instance details

Defined in Control.Lens.At

type Index (Array i e) = i
type Index (Style v n) 
Instance details

Defined in Diagrams.Core.Style

type Index (Style v n) = TypeRep
type Index (Point f a) 
Instance details

Defined in Linear.Affine

type Index (Point f a) = Index (f a)
type Index (HashMap k a) 
Instance details

Defined in Control.Lens.At

type Index (HashMap k a) = k
type Index (a, b, c) 
Instance details

Defined in Control.Lens.At

type Index (a, b, c) = Int
type Index (a, b, c, d) 
Instance details

Defined in Control.Lens.At

type Index (a, b, c, d) = Int
type Index (a, b, c, d, e) 
Instance details

Defined in Control.Lens.At

type Index (a, b, c, d, e) = Int
type Index (a, b, c, d, e, f) 
Instance details

Defined in Control.Lens.At

type Index (a, b, c, d, e, f) = Int
type Index (a, b, c, d, e, f, g) 
Instance details

Defined in Control.Lens.At

type Index (a, b, c, d, e, f, g) = Int
type Index (a, b, c, d, e, f, g, h) 
Instance details

Defined in Control.Lens.At

type Index (a, b, c, d, e, f, g, h) = Int
type Index (a, b, c, d, e, f, g, h, i) 
Instance details

Defined in Control.Lens.At

type Index (a, b, c, d, e, f, g, h, i) = Int

class Contains m where #

Minimal complete definition

contains

Methods

contains :: Index m -> Lens' m Bool #

Instances
Contains IntSet 
Instance details

Defined in Control.Lens.At

Ord a => Contains (Set a) 
Instance details

Defined in Control.Lens.At

Methods

contains :: Index (Set a) -> Lens' (Set a) Bool #

(Eq a, Hashable a) => Contains (HashSet a) 
Instance details

Defined in Control.Lens.At

Methods

contains :: Index (HashSet a) -> Lens' (HashSet a) Bool #

class Ixed m => At m where #

Minimal complete definition

at

Methods

at :: Index m -> Lens' m (Maybe (IxValue m)) #

Instances
At IntSet 
Instance details

Defined in Control.Lens.At

At ColourMap

Nothing == transparent

Instance details

Defined in Plots.Style

At (Maybe a) 
Instance details

Defined in Control.Lens.At

Methods

at :: Index (Maybe a) -> Lens' (Maybe a) (Maybe (IxValue (Maybe a))) #

At (IntMap a) 
Instance details

Defined in Control.Lens.At

Methods

at :: Index (IntMap a) -> Lens' (IntMap a) (Maybe (IxValue (IntMap a))) #

Ord k => At (Set k) 
Instance details

Defined in Control.Lens.At

Methods

at :: Index (Set k) -> Lens' (Set k) (Maybe (IxValue (Set k))) #

(Eq k, Hashable k) => At (HashSet k) 
Instance details

Defined in Control.Lens.At

Methods

at :: Index (HashSet k) -> Lens' (HashSet k) (Maybe (IxValue (HashSet k))) #

Ord k => At (Map k a) 
Instance details

Defined in Control.Lens.At

Methods

at :: Index (Map k a) -> Lens' (Map k a) (Maybe (IxValue (Map k a))) #

At (Style v n) 
Instance details

Defined in Diagrams.Core.Style

Methods

at :: Index (Style v n) -> Lens' (Style v n) (Maybe (IxValue (Style v n))) #

(Eq k, Hashable k) => At (HashMap k a) 
Instance details

Defined in Control.Lens.At

Methods

at :: Index (HashMap k a) -> Lens' (HashMap k a) (Maybe (IxValue (HashMap k a))) #

class Contravariant (f :: * -> *) where #

Minimal complete definition

contramap

Methods

contramap :: (a -> b) -> f b -> f a #

(>$) :: b -> f b -> f a #

Instances
Contravariant SettableStateVar 
Instance details

Defined in Data.Functor.Contravariant

Contravariant Comparison 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> Comparison b -> Comparison a #

(>$) :: b -> Comparison b -> Comparison a #

Contravariant Equivalence 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> Equivalence b -> Equivalence a #

(>$) :: b -> Equivalence b -> Equivalence a #

Contravariant Predicate 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> Predicate b -> Predicate a #

(>$) :: b -> Predicate b -> Predicate a #

Contravariant (V1 :: * -> *) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> V1 b -> V1 a #

(>$) :: b -> V1 b -> V1 a #

Contravariant (U1 :: * -> *) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> U1 b -> U1 a #

(>$) :: b -> U1 b -> U1 a #

Contravariant (Proxy :: * -> *) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> Proxy b -> Proxy a #

(>$) :: b -> Proxy b -> Proxy a #

Contravariant m => Contravariant (MaybeT m) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> MaybeT m b -> MaybeT m a #

(>$) :: b -> MaybeT m b -> MaybeT m a #

Contravariant m => Contravariant (ListT m) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> ListT m b -> ListT m a #

(>$) :: b -> ListT m b -> ListT m a #

Contravariant (Op a) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a0 -> b) -> Op a b -> Op a a0 #

(>$) :: b -> Op a b -> Op a a0 #

Contravariant f => Contravariant (Indexing f) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

contramap :: (a -> b) -> Indexing f b -> Indexing f a #

(>$) :: b -> Indexing f b -> Indexing f a #

Contravariant f => Contravariant (Indexing64 f) 
Instance details

Defined in Control.Lens.Internal.Indexed

Methods

contramap :: (a -> b) -> Indexing64 f b -> Indexing64 f a #

(>$) :: b -> Indexing64 f b -> Indexing64 f a #

Contravariant f => Contravariant (Rec1 f) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> Rec1 f b -> Rec1 f a #

(>$) :: b -> Rec1 f b -> Rec1 f a #

Contravariant (Const a :: * -> *) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a0 -> b) -> Const a b -> Const a a0 #

(>$) :: b -> Const a b -> Const a a0 #

Contravariant f => Contravariant (Alt f) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> Alt f b -> Alt f a #

(>$) :: b -> Alt f b -> Alt f a #

Contravariant f => Contravariant (IdentityT f) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> IdentityT f b -> IdentityT f a #

(>$) :: b -> IdentityT f b -> IdentityT f a #

Contravariant m => Contravariant (ExceptT e m) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> ExceptT e m b -> ExceptT e m a #

(>$) :: b -> ExceptT e m b -> ExceptT e m a #

Contravariant m => Contravariant (ErrorT e m) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> ErrorT e m b -> ErrorT e m a #

(>$) :: b -> ErrorT e m b -> ErrorT e m a #

Contravariant f => Contravariant (Backwards f) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> Backwards f b -> Backwards f a #

(>$) :: b -> Backwards f b -> Backwards f a #

Contravariant m => Contravariant (WriterT w m) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> WriterT w m b -> WriterT w m a #

(>$) :: b -> WriterT w m b -> WriterT w m a #

Contravariant m => Contravariant (StateT s m) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> StateT s m b -> StateT s m a #

(>$) :: b -> StateT s m b -> StateT s m a #

Contravariant m => Contravariant (StateT s m) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> StateT s m b -> StateT s m a #

(>$) :: b -> StateT s m b -> StateT s m a #

Contravariant m => Contravariant (WriterT w m) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> WriterT w m b -> WriterT w m a #

(>$) :: b -> WriterT w m b -> WriterT w m a #

Contravariant f => Contravariant (Reverse f) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> Reverse f b -> Reverse f a #

(>$) :: b -> Reverse f b -> Reverse f a #

Contravariant (Constant a :: * -> *) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a0 -> b) -> Constant a b -> Constant a a0 #

(>$) :: b -> Constant a b -> Constant a a0 #

Contravariant f => Contravariant (AlongsideLeft f b) 
Instance details

Defined in Control.Lens.Internal.Getter

Methods

contramap :: (a -> b0) -> AlongsideLeft f b b0 -> AlongsideLeft f b a #

(>$) :: b0 -> AlongsideLeft f b b0 -> AlongsideLeft f b a #

Contravariant f => Contravariant (AlongsideRight f a) 
Instance details

Defined in Control.Lens.Internal.Getter

Methods

contramap :: (a0 -> b) -> AlongsideRight f a b -> AlongsideRight f a a0 #

(>$) :: b -> AlongsideRight f a b -> AlongsideRight f a a0 #

Contravariant (K1 i c :: * -> *) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> K1 i c b -> K1 i c a #

(>$) :: b -> K1 i c b -> K1 i c a #

(Contravariant f, Contravariant g) => Contravariant (f :+: g) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> (f :+: g) b -> (f :+: g) a #

(>$) :: b -> (f :+: g) b -> (f :+: g) a #

(Contravariant f, Contravariant g) => Contravariant (f :*: g) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> (f :*: g) b -> (f :*: g) a #

(>$) :: b -> (f :*: g) b -> (f :*: g) a #

(Contravariant f, Contravariant g) => Contravariant (Product f g) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> Product f g b -> Product f g a #

(>$) :: b -> Product f g b -> Product f g a #

(Contravariant f, Contravariant g) => Contravariant (Sum f g) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> Sum f g b -> Sum f g a #

(>$) :: b -> Sum f g b -> Sum f g a #

Contravariant m => Contravariant (ReaderT r m) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> ReaderT r m b -> ReaderT r m a #

(>$) :: b -> ReaderT r m b -> ReaderT r m a #

Contravariant f => Contravariant (M1 i c f) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> M1 i c f b -> M1 i c f a #

(>$) :: b -> M1 i c f b -> M1 i c f a #

(Functor f, Contravariant g) => Contravariant (f :.: g) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> (f :.: g) b -> (f :.: g) a #

(>$) :: b -> (f :.: g) b -> (f :.: g) a #

(Functor f, Contravariant g) => Contravariant (Compose f g) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> Compose f g b -> Compose f g a #

(>$) :: b -> Compose f g b -> Compose f g a #

Contravariant m => Contravariant (RWST r w s m) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> RWST r w s m b -> RWST r w s m a #

(>$) :: b -> RWST r w s m b -> RWST r w s m a #

Contravariant m => Contravariant (RWST r w s m) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a -> b) -> RWST r w s m b -> RWST r w s m a #

(>$) :: b -> RWST r w s m b -> RWST r w s m a #

(Profunctor p, Contravariant g) => Contravariant (BazaarT p g a b) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

contramap :: (a0 -> b0) -> BazaarT p g a b b0 -> BazaarT p g a b a0 #

(>$) :: b0 -> BazaarT p g a b b0 -> BazaarT p g a b a0 #

(Profunctor p, Contravariant g) => Contravariant (BazaarT1 p g a b) 
Instance details

Defined in Control.Lens.Internal.Bazaar

Methods

contramap :: (a0 -> b0) -> BazaarT1 p g a b b0 -> BazaarT1 p g a b a0 #

(>$) :: b0 -> BazaarT1 p g a b b0 -> BazaarT1 p g a b a0 #

Contravariant f => Contravariant (TakingWhile p f a b) 
Instance details

Defined in Control.Lens.Internal.Magma

Methods

contramap :: (a0 -> b0) -> TakingWhile p f a b b0 -> TakingWhile p f a b a0 #

(>$) :: b0 -> TakingWhile p f a b b0 -> TakingWhile p f a b a0 #

(Profunctor p, Contravariant g) => Contravariant (PretextT p g a b) 
Instance details

Defined in Control.Lens.Internal.Context

Methods

contramap :: (a0 -> b0) -> PretextT p g a b b0 -> PretextT p g a b a0 #

(>$) :: b0 -> PretextT p g a b b0 -> PretextT p g a b a0 #

traverseBy :: Traversable t => (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> (a -> f b) -> t a -> f (t b) #

sequenceBy :: Traversable t => (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> t (f a) -> f (t a) #

foldMapBy :: Foldable t => (r -> r -> r) -> r -> (a -> r) -> t a -> r #

foldBy :: Foldable t => (a -> a -> a) -> a -> t a -> a #

op :: Wrapped s => (Unwrapped s -> s) -> s -> Unwrapped s #

alaf :: (Functor f, Functor g, Rewrapping s t) => (Unwrapped s -> s) -> (f t -> g s) -> f (Unwrapped t) -> g (Unwrapped s) #

ala :: (Functor f, Rewrapping s t) => (Unwrapped s -> s) -> ((Unwrapped t -> t) -> f s) -> f (Unwrapped s) #

_Wrapping' :: Wrapped s => (Unwrapped s -> s) -> Iso' s (Unwrapped s) #

_Wrapping :: Rewrapping s t => (Unwrapped s -> s) -> Iso s t (Unwrapped s) (Unwrapped t) #

_Wrapped :: Rewrapping s t => Iso s t (Unwrapped s) (Unwrapped t) #

_Unwrapping' :: Wrapped s => (Unwrapped s -> s) -> Iso' (Unwrapped s) s #

_Unwrapping :: Rewrapping s t => (Unwrapped s -> s) -> Iso (Unwrapped t) (Unwrapped s) t s #

_GWrapped' :: (Generic s, D1 d (C1 c (S1 s' (Rec0 a))) ~ Rep s, Unwrapped s ~ GUnwrapped (Rep s)) => Iso' s (Unwrapped s) #

pattern Wrapped :: forall s. Rewrapped s s => Unwrapped s -> s #

pattern Unwrapped :: forall t. Rewrapped t t => t -> Unwrapped t #

_9' :: Field9 s t a b => Lens s t a b #

_8' :: Field8 s t a b => Lens s t a b #

_7' :: Field7 s t a b => Lens s t a b #

_6' :: Field6 s t a b => Lens s t a b #

_5' :: Field5 s t a b => Lens s t a b #

_4' :: Field4 s t a b => Lens s t a b #

_3' :: Field3 s t a b => Lens s t a b #

_2' :: Field2 s t a b => Lens s t a b #

_19' :: Field19 s t a b => Lens s t a b #

_18' :: Field18 s t a b => Lens s t a b #

_17' :: Field17 s t a b => Lens s t a b #

_16' :: Field16 s t a b => Lens s t a b #

_15' :: Field15 s t a b => Lens s t a b #

_14' :: Field14 s t a b => Lens s t a b #

_13' :: Field13 s t a b => Lens s t a b #

_12' :: Field12 s t a b => Lens s t a b #

_11' :: Field11 s t a b => Lens s t a b #

_10' :: Field10 s t a b => Lens s t a b #

_1' :: Field1 s t a b => Lens s t a b #

unsafeSingular :: (HasCallStack, Conjoined p, Functor f) => Traversing p f s t a b -> Over p f s t a b #

unsafePartsOf' :: ATraversal s t a b -> Lens s t [a] [b] #

unsafePartsOf :: Functor f => Traversing ((->) :: * -> * -> *) f s t a b -> LensLike f s t [a] [b] #

traversed :: Traversable f => IndexedTraversal Int (f a) (f b) a b #

traverseOf :: LensLike f s t a b -> (a -> f b) -> s -> f t #

traverseByOf :: Traversal s t a b -> (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> (a -> f b) -> s -> f t #

transposeOf :: LensLike ZipList s t [a] a -> s -> [t] #

taking :: (Conjoined p, Applicative f) => Int -> Traversing p f s t a a -> Over p f s t a a #

singular :: (HasCallStack, Conjoined p, Functor f) => Traversing p f s t a a -> Over p f s t a a #

sequenceOf :: LensLike (WrappedMonad m) s t (m b) b -> s -> m t #

sequenceByOf :: Traversal s t (f b) b -> (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> s -> f t #

sequenceAOf :: LensLike f s t (f b) b -> s -> f t #

scanr1Of :: LensLike (Backwards (State (Maybe a))) s t a a -> (a -> a -> a) -> s -> t #

scanl1Of :: LensLike (State (Maybe a)) s t a a -> (a -> a -> a) -> s -> t #

partsOf' :: ATraversal s t a a -> Lens s t [a] [a] #

partsOf :: Functor f => Traversing ((->) :: * -> * -> *) f s t a a -> LensLike f s t [a] [a] #

mapMOf :: LensLike (WrappedMonad m) s t a b -> (a -> m b) -> s -> m t #

mapAccumROf :: LensLike (Backwards (State acc)) s t a b -> (acc -> a -> (acc, b)) -> acc -> s -> (acc, t) #

mapAccumLOf :: LensLike (State acc) s t a b -> (acc -> a -> (acc, b)) -> acc -> s -> (acc, t) #

loci :: Applicative f => (a -> f b) -> Bazaar ((->) :: * -> * -> *) a c s -> f (Bazaar ((->) :: * -> * -> *) b c s) #

iunsafePartsOf' :: Over (Indexed i) (Bazaar (Indexed i) a b) s t a b -> IndexedLens [i] s t [a] [b] #

iunsafePartsOf :: (Indexable [i] p, Functor f) => Traversing (Indexed i) f s t a b -> Over p f s t [a] [b] #

itraverseOf :: (Indexed i a (f b) -> s -> f t) -> (i -> a -> f b) -> s -> f t #

ipartsOf' :: (Indexable [i] p, Functor f) => Over (Indexed i) (Bazaar' (Indexed i) a) s t a a -> Over p f s t [a] [a] #

ipartsOf :: (Indexable [i] p, Functor f) => Traversing (Indexed i) f s t a a -> Over p f s t [a] [a] #

imapMOf :: Over (Indexed i) (WrappedMonad m) s t a b -> (i -> a -> m b) -> s -> m t #

imapAccumROf :: Over (Indexed i) (Backwards (State acc)) s t a b -> (i -> acc -> a -> (acc, b)) -> acc -> s -> (acc, t) #

imapAccumLOf :: Over (Indexed i) (State acc) s t a b -> (i -> acc -> a -> (acc, b)) -> acc -> s -> (acc, t) #

iloci :: (Indexable i p, Applicative f) => p a (f b) -> Bazaar (Indexed i) a c s -> f (Bazaar (Indexed i) b c s) #

ignored :: Applicative f => pafb -> s -> f s #

iforOf :: (Indexed i a (f b) -> s -> f t) -> s -> (i -> a -> f b) -> f t #

iforMOf :: (Indexed i a (WrappedMonad m b) -> s -> WrappedMonad m t) -> s -> (i -> a -> m b) -> m t #

ifailover :: Alternative m => Over (Indexed i) ((,) Any) s t a b -> (i -> a -> b) -> s -> m t #

holesOf :: Conjoined p => Over p (Bazaar p a a) s t a a -> s -> [Pretext p a a t] #

forOf :: LensLike f s t a b -> s -> (a -> f b) -> f t #

forMOf :: LensLike (WrappedMonad m) s t a b -> s -> (a -> m b) -> m t #

failover :: Alternative m => LensLike ((,) Any) s t a b -> (a -> b) -> s -> m t #

failing :: (Conjoined p, Applicative f) => Traversing p f s t a b -> Over p f s t a b -> Over p f s t a b #

elementsOf :: Applicative f => LensLike (Indexing f) s t a a -> (Int -> Bool) -> IndexedLensLike Int f s t a a #

elementOf :: Applicative f => LensLike (Indexing f) s t a a -> Int -> IndexedLensLike Int f s t a a #

dropping :: (Conjoined p, Applicative f) => Int -> Over p (Indexing f) s t a a -> Over p f s t a a #

deepOf :: (Conjoined p, Applicative f) => LensLike f s t s t -> Traversing p f s t a b -> Over p f s t a b #

confusing :: Applicative f => LensLike (Curried (Yoneda f) (Yoneda f)) s t a b -> LensLike f s t a b #

cloneTraversal1 :: ATraversal1 s t a b -> Traversal1 s t a b #

cloneTraversal :: ATraversal s t a b -> Traversal s t a b #

both1 :: Bitraversable1 r => Traversal1 (r a a) (r b b) a b #

both :: Bitraversable r => Traversal (r a a) (r b b) a b #

beside :: (Representable q, Applicative (Rep q), Applicative f, Bitraversable r) => Optical p q f s t a b -> Optical p q f s' t' a b -> Optical p q f (r s s') (r t t') a b #

(||~) :: ASetter s t Bool Bool -> Bool -> s -> t #

(||=) :: MonadState s m => ASetter' s Bool -> Bool -> m () #

setting :: ((a -> b) -> s -> t) -> IndexPreservingSetter s t a b #

sets :: (Profunctor p, Profunctor q, Settable f) => (p a b -> q s t) -> Optical p q f s t a b #

set' :: ASetter' s a -> a -> s -> s #

set :: ASetter s t a b -> b -> s -> t #

scribe :: (MonadWriter t m, Monoid s) => ASetter s t a b -> b -> m () #

passing :: MonadWriter w m => Setter w w u v -> m (a, u -> v) -> m a #

over :: ASetter s t a b -> (a -> b) -> s -> t #

modifying :: MonadState s m => ASetter s s a b -> (a -> b) -> m () #

mapped :: Functor f => Setter (f a) (f b) a b #

mapOf :: ASetter s t a b -> (a -> b) -> s -> t #

lifted :: Monad m => Setter (m a) (m b) a b #

isets :: ((i -> a -> b) -> s -> t) -> IndexedSetter i s t a b #

iset :: AnIndexedSetter i s t a b -> (i -> b) -> s -> t #

ipassing :: MonadWriter w m => IndexedSetter i w w u v -> m (a, i -> u -> v) -> m a #

iover :: AnIndexedSetter i s t a b -> (i -> a -> b) -> s -> t #

imodifying :: MonadState s m => AnIndexedSetter i s s a b -> (i -> a -> b) -> m () #

imapOf :: AnIndexedSetter i s t a b -> (i -> a -> b) -> s -> t #

icensoring :: MonadWriter w m => IndexedSetter i w w u v -> (i -> u -> v) -> m a -> m a #

contramapped :: Contravariant f => Setter (f b) (f a) a b #

cloneSetter :: ASetter s t a b -> Setter s t a b #

censoring :: MonadWriter w m => Setter w w u v -> (u -> v) -> m a -> m a #

assignA :: Arrow p => ASetter s t a b -> p s b -> p s t #

assign :: MonadState s m => ASetter s s a b -> b -> m () #

argument :: Profunctor p => Setter (p b r) (p a r) a b #

(^~) :: (Num a, Integral e) => ASetter s t a a -> e -> s -> t #

(^^~) :: (Fractional a, Integral e) => ASetter s t a a -> e -> s -> t #

(^^=) :: (MonadState s m, Fractional a, Integral e) => ASetter' s a -> e -> m () #

(^=) :: (MonadState s m, Num a, Integral e) => ASetter' s a -> e -> m () #

(?~) :: ASetter s t a (Maybe b) -> b -> s -> t #

(?=) :: MonadState s m => ASetter s s a (Maybe b) -> b -> m () #

(<~) :: MonadState s m => ASetter s s a b -> m b -> m () #

(<?~) :: ASetter s t a (Maybe b) -> b -> s -> (b, t) #

(<?=) :: MonadState s m => ASetter s s a (Maybe b) -> b -> m b #

(<>~) :: Monoid a => ASetter s t a a -> a -> s -> t #

(<>=) :: (MonadState s m, Monoid a) => ASetter' s a -> a -> m () #

(<.~) :: ASetter s t a b -> b -> s -> (b, t) #

(<.=) :: MonadState s m => ASetter s s a b -> b -> m b #

(//~) :: Fractional a => ASetter s t a a -> a -> s -> t #

(//=) :: (MonadState s m, Fractional a) => ASetter' s a -> a -> m () #

(.~) :: ASetter s t a b -> b -> s -> t #

(.@~) :: AnIndexedSetter i s t a b -> (i -> b) -> s -> t #

(.@=) :: MonadState s m => AnIndexedSetter i s s a b -> (i -> b) -> m () #

(.=) :: MonadState s m => ASetter s s a b -> b -> m () #

(-~) :: Num a => ASetter s t a a -> a -> s -> t #

(-=) :: (MonadState s m, Num a) => ASetter' s a -> a -> m () #

(+~) :: Num a => ASetter s t a a -> a -> s -> t #

(+=) :: (MonadState s m, Num a) => ASetter' s a -> a -> m () #

(*~) :: Num a => ASetter s t a a -> a -> s -> t #

(*=) :: (MonadState s m, Num a) => ASetter' s a -> a -> m () #

(**~) :: Floating a => ASetter s t a a -> a -> s -> t #

(**=) :: (MonadState s m, Floating a) => ASetter' s a -> a -> m () #

(&&~) :: ASetter s t Bool Bool -> Bool -> s -> t #

(&&=) :: MonadState s m => ASetter' s Bool -> Bool -> m () #

(%~) :: ASetter s t a b -> (a -> b) -> s -> t #

(%@~) :: AnIndexedSetter i s t a b -> (i -> a -> b) -> s -> t #

(%@=) :: MonadState s m => AnIndexedSetter i s s a b -> (i -> a -> b) -> m () #

(%=) :: MonadState s m => ASetter s s a b -> (a -> b) -> m () #

unto :: (Profunctor p, Bifunctor p, Functor f) => (b -> t) -> Optic p f s t a b #

un :: (Profunctor p, Bifunctor p, Functor f) => Getting a s a -> Optic' p f a s #

reviews :: MonadReader b m => AReview t b -> (t -> r) -> m r #

review :: MonadReader b m => AReview t b -> m t #

reuses :: MonadState b m => AReview t b -> (t -> r) -> m r #

reuse :: MonadState b m => AReview t b -> m t #

re :: AReview t b -> Getter b t #

(#) :: AReview t b -> b -> t #

without :: APrism s t a b -> APrism u v c d -> Prism (Either s u) (Either t v) (Either a c) (Either b d) #

withPrism :: APrism s t a b -> ((b -> t) -> (s -> Either t a) -> r) -> r #

prism' :: (b -> s) -> (s -> Maybe a) -> Prism s s a b #

prism :: (b -> t) -> (s -> Either t a) -> Prism s t a b #

outside :: Representable p => APrism s t a b -> Lens (p t r) (p s r) (p b r) (p a r) #

only :: Eq a => a -> Prism' a () #

nearly :: a -> (a -> Bool) -> Prism' a () #

matching :: APrism s t a b -> s -> Either t a #

isn't :: APrism s t a b -> s -> Bool #

clonePrism :: APrism s t a b -> Prism s t a b #

below :: Traversable f => APrism' s a -> Prism' (f s) (f a) #

aside :: APrism s t a b -> Prism (e, s) (e, t) (e, a) (e, b) #

_Void :: (Choice p, Applicative f) => p a (f Void) -> p s (f s) #

_Show :: (Read a, Show a) => Prism' String a #

_Right :: (Choice p, Applicative f) => p a (f b) -> p (Either c a) (f (Either c b)) #

_Nothing :: (Choice p, Applicative f) => p () (f ()) -> p (Maybe a) (f (Maybe a)) #

_Left :: (Choice p, Applicative f) => p a (f b) -> p (Either a c) (f (Either b c)) #

_Just :: (Choice p, Applicative f) => p a (f b) -> p (Maybe a) (f (Maybe b)) #

universeOnOf :: Getting [a] s a -> Getting [a] a a -> s -> [a] #

universeOn :: Plated a => Getting [a] s a -> s -> [a] #

universeOf :: Getting [a] a a -> a -> [a] #

universe :: Plated a => a -> [a] #

transformOnOf :: ASetter s t a b -> ASetter a b a b -> (b -> b) -> s -> t #

transformOn :: Plated a => ASetter s t a a -> (a -> a) -> s -> t #

transformOf :: ASetter a b a b -> (b -> b) -> a -> b #

transformMOnOf :: Monad m => LensLike (WrappedMonad m) s t a b -> LensLike (WrappedMonad m) a b a b -> (b -> m b) -> s -> m t #

transformMOn :: (Monad m, Plated a) => LensLike (WrappedMonad m) s t a a -> (a -> m a) -> s -> m t #

transformMOf :: Monad m => LensLike (WrappedMonad m) a b a b -> (b -> m b) -> a -> m b #

transformM :: (Monad m, Plated a) => (a -> m a) -> a -> m a #

transform :: Plated a => (a -> a) -> a -> a #

rewriteOnOf :: ASetter s t a b -> ASetter a b a b -> (b -> Maybe a) -> s -> t #

rewriteOn :: Plated a => ASetter s t a a -> (a -> Maybe a) -> s -> t #

rewriteOf :: ASetter a b a b -> (b -> Maybe a) -> a -> b #

rewriteMOnOf :: Monad m => LensLike (WrappedMonad m) s t a b -> LensLike (WrappedMonad m) a b a b -> (b -> m (Maybe a)) -> s -> m t #

rewriteMOn :: (Monad m, Plated a) => LensLike (WrappedMonad m) s t a a -> (a -> m (Maybe a)) -> s -> m t #

rewriteMOf :: Monad m => LensLike (WrappedMonad m) a b a b -> (b -> m (Maybe a)) -> a -> m b #

rewriteM :: (Monad m, Plated a) => (a -> m (Maybe a)) -> a -> m a #

rewrite :: Plated a => (a -> Maybe a) -> a -> a #

parts :: Plated a => Lens' a [a] #

paraOf :: Getting (Endo [a]) a a -> (a -> [r] -> r) -> a -> r #

para :: Plated a => (a -> [r] -> r) -> a -> r #

holesOnOf :: Conjoined p => LensLike (Bazaar p r r) s t a b -> Over p (Bazaar p r r) a b r r -> s -> [Pretext p r r t] #

holesOn :: Conjoined p => Over p (Bazaar p a a) s t a a -> s -> [Pretext p a a t] #

holes :: Plated a => a -> [Pretext ((->) :: * -> * -> *) a a a] #

gplate :: (Generic a, GPlated a (Rep a)) => Traversal' a a #

deep :: (Conjoined p, Applicative f, Plated s) => Traversing p f s s a b -> Over p f s s a b #

cosmosOnOf :: (Applicative f, Contravariant f) => LensLike' f s a -> LensLike' f a a -> LensLike' f s a #

cosmos :: Plated a => Fold a a #

contextsOnOf :: ATraversal s t a a -> ATraversal' a a -> s -> [Context a a t] #

contextsOn :: Plated a => ATraversal s t a a -> s -> [Context a a t] #

contextsOf :: ATraversal' a a -> a -> [Context a a a] #

contexts :: Plated a => a -> [Context a a a] #

composOpFold :: Plated a => b -> (b -> b -> b) -> (a -> b) -> a -> b #

children :: Plated a => a -> [a] #

levels :: Applicative f => Traversing ((->) :: * -> * -> *) f s t a b -> IndexedLensLike Int f s t (Level () a) (Level () b) #

ilevels :: Applicative f => Traversing (Indexed i) f s t a b -> IndexedLensLike Int f s t (Level i a) (Level j b) #

united :: Functor f => (() -> f ()) -> a -> f a #

storing :: ALens s t a b -> b -> s -> t #

overA :: Arrow ar => LensLike (Context a b) s t a b -> ar a b -> ar s t #

locus :: IndexedComonadStore p => Lens (p a c s) (p b c s) a b #

lens :: (s -> a) -> (s -> b -> t) -> Lens s t a b #

iplens :: (s -> a) -> (s -> b -> t) -> IndexPreservingLens s t a b #

inside :: Corepresentable p => ALens s t a b -> Lens (p e s) (p e t) (p e a) (p e b) #

ilens :: (s -> (i, a)) -> (s -> b -> t) -> IndexedLens i s t a b #

fusing :: Functor f => LensLike (Yoneda f) s t a b -> LensLike f s t a b #

devoid :: Over p f Void Void a b #

cloneLens :: ALens s t a b -> Lens s t a b #

cloneIndexedLens :: AnIndexedLens i s t a b -> IndexedLens i s t a b #

chosen :: (Conjoined p, Functor f) => p a (f b) -> p (Either a a) (f (Either b b)) #

choosing :: Functor f => LensLike f s t a b -> LensLike f s' t' a b -> LensLike f (Either s s') (Either t t') a b #

alongside :: LensLike (AlongsideLeft f b') s t a b -> LensLike (AlongsideRight f t) s' t' a' b' -> LensLike f (s, s') (t, t') (a, a') (b, b') #

(^#) :: s -> ALens s t a b -> a #

(??) :: Functor f => f (a -> b) -> a -> f b #

(<||~) :: LensLike ((,) Bool) s t Bool Bool -> Bool -> s -> (Bool, t) #

(<||=) :: MonadState s m => LensLike' ((,) Bool) s Bool -> Bool -> m Bool #

(<^~) :: (Num a, Integral e) => LensLike ((,) a) s t a a -> e -> s -> (a, t) #

(<^^~) :: (Fractional a, Integral e) => LensLike ((,) a) s t a a -> e -> s -> (a, t) #

(<^^=) :: (MonadState s m, Fractional a, Integral e) => LensLike' ((,) a) s a -> e -> m a #

(<^=) :: (MonadState s m, Num a, Integral e) => LensLike' ((,) a) s a -> e -> m a #

(<<~) :: MonadState s m => ALens s s a b -> m b -> m b #

(<<||~) :: LensLike' ((,) Bool) s Bool -> Bool -> s -> (Bool, s) #

(<<^~) :: (Num a, Integral e) => LensLike' ((,) a) s a -> e -> s -> (a, s) #

(<<^^~) :: (Fractional a, Integral e) => LensLike' ((,) a) s a -> e -> s -> (a, s) #

(<<^^=) :: (MonadState s m, Fractional a, Integral e) => LensLike' ((,) a) s a -> e -> m a #

(<<^=) :: (MonadState s m, Num a, Integral e) => LensLike' ((,) a) s a -> e -> m a #

(<<?~) :: LensLike ((,) a) s t a (Maybe b) -> b -> s -> (a, t) #

(<<?=) :: MonadState s m => LensLike ((,) a) s s a (Maybe b) -> b -> m a #

(<<>~) :: Monoid m => LensLike ((,) m) s t m m -> m -> s -> (m, t) #

(<<>=) :: (MonadState s m, Monoid r) => LensLike' ((,) r) s r -> r -> m r #

(<<<>~) :: Monoid r => LensLike' ((,) r) s r -> r -> s -> (r, s) #

(<<<>=) :: (MonadState s m, Monoid r) => LensLike' ((,) r) s r -> r -> m r #

(<<//~) :: Fractional a => LensLike' ((,) a) s a -> a -> s -> (a, s) #

(<<//=) :: (MonadState s m, Fractional a) => LensLike' ((,) a) s a -> a -> m a #

(<<.~) :: LensLike ((,) a) s t a b -> b -> s -> (a, t) #

(<<.=) :: MonadState s m => LensLike ((,) a) s s a b -> b -> m a #

(<<-~) :: Num a => LensLike' ((,) a) s a -> a -> s -> (a, s) #

(<<-=) :: (MonadState s m, Num a) => LensLike' ((,) a) s a -> a -> m a #

(<<+~) :: Num a => LensLike' ((,) a) s a -> a -> s -> (a, s) #

(<<+=) :: (MonadState s m, Num a) => LensLike' ((,) a) s a -> a -> m a #

(<<*~) :: Num a => LensLike' ((,) a) s a -> a -> s -> (a, s) #

(<<*=) :: (MonadState s m, Num a) => LensLike' ((,) a) s a -> a -> m a #

(<<**~) :: Floating a => LensLike' ((,) a) s a -> a -> s -> (a, s) #

(<<**=) :: (MonadState s m, Floating a) => LensLike' ((,) a) s a -> a -> m a #

(<<&&~) :: LensLike' ((,) Bool) s Bool -> Bool -> s -> (Bool, s) #

(<<%~) :: LensLike ((,) a) s t a b -> (a -> b) -> s -> (a, t) #

(<<%@~) :: Over (Indexed i) ((,) a) s t a b -> (i -> a -> b) -> s -> (a, t) #

(<<%@=) :: MonadState s m => IndexedLensLike i ((,) a) s s a b -> (i -> a -> b) -> m a #

(<<%=) :: (Strong p, MonadState s m) => Over p ((,) a) s s a b -> p a b -> m a #

(<//~) :: Fractional a => LensLike ((,) a) s t a a -> a -> s -> (a, t) #

(<//=) :: (MonadState s m, Fractional a) => LensLike' ((,) a) s a -> a -> m a #

(<-~) :: Num a => LensLike ((,) a) s t a a -> a -> s -> (a, t) #

(<-=) :: (MonadState s m, Num a) => LensLike' ((,) a) s a -> a -> m a #

(<+~) :: Num a => LensLike ((,) a) s t a a -> a -> s -> (a, t) #

(<+=) :: (MonadState s m, Num a) => LensLike' ((,) a) s a -> a -> m a #

(<*~) :: Num a => LensLike ((,) a) s t a a -> a -> s -> (a, t) #

(<*=) :: (MonadState s m, Num a) => LensLike' ((,) a) s a -> a -> m a #

(<**~) :: Floating a => LensLike ((,) a) s t a a -> a -> s -> (a, t) #

(<**=) :: (MonadState s m, Floating a) => LensLike' ((,) a) s a -> a -> m a #

(<&&~) :: LensLike ((,) Bool) s t Bool Bool -> Bool -> s -> (Bool, t) #

(<&&=) :: MonadState s m => LensLike' ((,) Bool) s Bool -> Bool -> m Bool #

(<%~) :: LensLike ((,) b) s t a b -> (a -> b) -> s -> (b, t) #

(<%@~) :: Over (Indexed i) ((,) b) s t a b -> (i -> a -> b) -> s -> (b, t) #

(<%@=) :: MonadState s m => IndexedLensLike i ((,) b) s s a b -> (i -> a -> b) -> m b #

(<%=) :: MonadState s m => LensLike ((,) b) s s a b -> (a -> b) -> m b #

(<#~) :: ALens s t a b -> b -> s -> (b, t) #

(<#=) :: MonadState s m => ALens s s a b -> b -> m b #

(<#%~) :: ALens s t a b -> (a -> b) -> s -> (b, t) #

(<#%=) :: MonadState s m => ALens s s a b -> (a -> b) -> m b #

(&~) :: s -> State s a -> s #

(%%~) :: LensLike f s t a b -> (a -> f b) -> s -> f t #

(%%@~) :: IndexedLensLike i f s t a b -> (i -> a -> f b) -> s -> f t #

(%%@=) :: MonadState s m => IndexedLensLike i ((,) r) s s a b -> (i -> a -> (r, b)) -> m r #

(%%=) :: MonadState s m => Over p ((,) r) s s a b -> p a (r, b) -> m r #

(#~) :: ALens s t a b -> b -> s -> t #

(#=) :: MonadState s m => ALens s s a b -> b -> m () #

(#%~) :: ALens s t a b -> (a -> b) -> s -> t #

(#%=) :: MonadState s m => ALens s s a b -> (a -> b) -> m () #

(#%%~) :: Functor f => ALens s t a b -> (a -> f b) -> s -> f t #

(#%%=) :: MonadState s m => ALens s s a b -> (a -> (r, b)) -> m r #

withIso :: AnIso s t a b -> ((s -> a) -> (b -> t) -> r) -> r #

under :: AnIso s t a b -> (t -> s) -> b -> a #

uncurried :: (Profunctor p, Functor f) => p ((a, b) -> c) (f ((d, e) -> f)) -> p (a -> b -> c) (f (d -> e -> f)) #

seconding :: (Bifunctor f, Bifunctor g) => AnIso s t a b -> Iso (f x s) (g y t) (f x a) (g y b) #

rmapping :: (Profunctor p, Profunctor q) => AnIso s t a b -> Iso (p x s) (q y t) (p x a) (q y b) #

reversed :: Reversing a => Iso' a a #

non' :: APrism' a () -> Iso' (Maybe a) a #

non :: Eq a => a -> Iso' (Maybe a) a #

mapping :: (Functor f, Functor g) => AnIso s t a b -> Iso (f s) (g t) (f a) (g b) #

lmapping :: (Profunctor p, Profunctor q) => AnIso s t a b -> Iso (p a x) (q b y) (p s x) (q t y) #

lazy :: Strict lazy strict => Iso' strict lazy #

iso :: (s -> a) -> (b -> t) -> Iso s t a b #

involuted :: (a -> a) -> Iso' a a #

imagma :: Over (Indexed i) (Molten i a b) s t a b -> Iso s t' (Magma i t b a) (Magma j t' c c) #

from :: AnIso s t a b -> Iso b a t s #

flipped :: (Profunctor p, Functor f) => p (b -> a -> c) (f (b' -> a' -> c')) -> p (a -> b -> c) (f (a' -> b' -> c')) #

firsting :: (Bifunctor f, Bifunctor g) => AnIso s t a b -> Iso (f s x) (g t y) (f a x) (g b y) #

enum :: Enum a => Iso' Int a #

dimapping :: (Profunctor p, Profunctor q) => AnIso s t a b -> AnIso s' t' a' b' -> Iso (p a s') (q b t') (p s a') (q t b') #

curried :: (Profunctor p, Functor f) => p (a -> b -> c) (f (d -> e -> f)) -> p ((a, b) -> c) (f ((d, e) -> f)) #

contramapping :: Contravariant f => AnIso s t a b -> Iso (f a) (f b) (f s) (f t) #

coerced :: (Coercible s a, Coercible t b) => Iso s t a b #

cloneIso :: AnIso s t a b -> Iso s t a b #

bimapping :: (Bifunctor f, Bifunctor g) => AnIso s t a b -> AnIso s' t' a' b' -> Iso (f s s') (g t t') (f a a') (g b b') #

auf :: Optic (Costar f) g s t a b -> (f a -> g b) -> f s -> g t #

au :: Functor f => AnIso s t a b -> ((b -> t) -> f s) -> f a #

anon :: a -> (a -> Bool) -> Iso' (Maybe a) a #

pattern Swapped :: forall (p :: * -> * -> *) c d. Swapped p => p d c -> p c d #

pattern Strict :: forall s t. Strict s t => t -> s #

pattern Reversed :: forall t. Reversing t => t -> t #

pattern List :: forall l. IsList l => [Item l] -> l #

pattern Lazy :: forall t s. Strict t s => t -> s #

retagged :: (Profunctor p, Bifunctor p) => p a b -> p s b #

withIndex :: (Indexable i p, Functor f) => p (i, s) (f (j, t)) -> Indexed i s (f t) #

indexing64 :: Indexable Int64 p => ((a -> Indexing64 f b) -> s -> Indexing64 f t) -> p a (f b) -> s -> f t #

indexing :: Indexable Int p => ((a -> Indexing f b) -> s -> Indexing f t) -> p a (f b) -> s -> f t #

asIndex :: (Indexable i p, Contravariant f, Functor f) => p i (f i) -> Indexed i s (f s) #

selfIndex :: Indexable a p => p a fb -> a -> fb #

reindexed :: Indexable j p => (i -> j) -> (Indexed i a b -> r) -> p a b -> r #

none :: Foldable f => (a -> Bool) -> f a -> Bool #

itraverse_ :: (FoldableWithIndex i t, Applicative f) => (i -> a -> f b) -> t a -> f () #

itraverseByOf :: IndexedTraversal i s t a b -> (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> (i -> a -> f b) -> s -> f t #

itraverseBy :: TraversableWithIndex i t => (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> (i -> a -> f b) -> t a -> f (t b) #

itoList :: FoldableWithIndex i f => f a -> [(i, a)] #

inone :: FoldableWithIndex i f => (i -> a -> Bool) -> f a -> Bool #

indices :: (Indexable i p, Applicative f) => (i -> Bool) -> Optical' p (Indexed i) f a a #

index :: (Indexable i p, Eq i, Applicative f) => i -> Optical' p (Indexed i) f a a #

imapM_ :: (FoldableWithIndex i t, Monad m) => (i -> a -> m b) -> t a -> m () #

imapM :: (TraversableWithIndex i t, Monad m) => (i -> a -> m b) -> t a -> m (t b) #

imapAccumR :: TraversableWithIndex i t => (i -> s -> a -> (s, b)) -> s -> t a -> (s, t b) #

imapAccumL :: TraversableWithIndex i t => (i -> s -> a -> (s, b)) -> s -> t a -> (s, t b) #

ifor_ :: (FoldableWithIndex i t, Applicative f) => t a -> (i -> a -> f b) -> f () #

iforM_ :: (FoldableWithIndex i t, Monad m) => t a -> (i -> a -> m b) -> m () #

iforM :: (TraversableWithIndex i t, Monad m) => t a -> (i -> a -> m b) -> m (t b) #

ifor :: (TraversableWithIndex i t, Applicative f) => t a -> (i -> a -> f b) -> f (t b) #

ifoldrM :: (FoldableWithIndex i f, Monad m) => (i -> a -> b -> m b) -> b -> f a -> m b #

ifoldlM :: (FoldableWithIndex i f, Monad m) => (i -> b -> a -> m b) -> b -> f a -> m b #

ifoldMapByOf :: IndexedFold i t a -> (r -> r -> r) -> r -> (i -> a -> r) -> t -> r #

ifoldMapBy :: FoldableWithIndex i t => (r -> r -> r) -> r -> (i -> a -> r) -> t a -> r #

ifind :: FoldableWithIndex i f => (i -> a -> Bool) -> f a -> Maybe (i, a) #

iconcatMap :: FoldableWithIndex i f => (i -> a -> [b]) -> f a -> [b] #

icompose :: Indexable p c => (i -> j -> p) -> (Indexed i s t -> r) -> (Indexed j a b -> s -> t) -> c a b -> r #

iany :: FoldableWithIndex i f => (i -> a -> Bool) -> f a -> Bool #

iall :: FoldableWithIndex i f => (i -> a -> Bool) -> f a -> Bool #

(<.>) :: Indexable (i, j) p => (Indexed i s t -> r) -> (Indexed j a b -> s -> t) -> p a b -> r #

(<.) :: Indexable i p => (Indexed i s t -> r) -> ((a -> b) -> s -> t) -> p a b -> r #

(.>) :: (st -> r) -> (kab -> st) -> kab -> r #

views :: MonadReader s m => LensLike' (Const r :: * -> *) s a -> (a -> r) -> m r #

view :: MonadReader s m => Getting a s a -> m a #

uses :: MonadState s m => LensLike' (Const r :: * -> *) s a -> (a -> r) -> m r #

use :: MonadState s m => Getting a s a -> m a #

to :: (Profunctor p, Contravariant f) => (s -> a) -> Optic' p f s a #

listenings :: MonadWriter w m => Getting v w u -> (u -> v) -> m a -> m (a, v) #

listening :: MonadWriter w m => Getting u w u -> m a -> m (a, u) #

like :: (Profunctor p, Contravariant f, Functor f) => a -> Optic' p f s a #

iviews :: MonadReader s m => IndexedGetting i r s a -> (i -> a -> r) -> m r #

iview :: MonadReader s m => IndexedGetting i (i, a) s a -> m (i, a) #

iuses :: MonadState s m => IndexedGetting i r s a -> (i -> a -> r) -> m r #

iuse :: MonadState s m => IndexedGetting i (i, a) s a -> m (i, a) #

ito :: (Indexable i p, Contravariant f) => (s -> (i, a)) -> Over' p f s a #

ilistenings :: MonadWriter w m => IndexedGetting i v w u -> (i -> u -> v) -> m a -> m (a, v) #

ilistening :: MonadWriter w m => IndexedGetting i (i, u) w u -> m a -> m (a, (i, u)) #

ilike :: (Indexable i p, Contravariant f, Functor f) => i -> a -> Over' p f s a #

getting :: (Profunctor p, Profunctor q, Functor f, Contravariant f) => Optical p q f s t a b -> Optical' p q f s a #

(^@.) :: s -> IndexedGetting i (i, a) s a -> (i, a) #

(^.) :: s -> Getting a s a -> a #

unfolded :: (b -> Maybe (a, b)) -> Fold b a #

traverseOf_ :: Functor f => Getting (Traversed r f) s a -> (a -> f r) -> s -> f () #

traverse1Of_ :: Functor f => Getting (TraversedF r f) s a -> (a -> f r) -> s -> f () #

toNonEmptyOf :: Getting (NonEmptyDList a) s a -> s -> NonEmpty a #

toListOf :: Getting (Endo [a]) s a -> s -> [a] #

takingWhile :: (Conjoined p, Applicative f) => (a -> Bool) -> Over p (TakingWhile p f a a) s t a a -> Over p f s t a a #

sumOf :: Num a => Getting (Endo (Endo a)) s a -> s -> a #

sequenceOf_ :: Monad m => Getting (Sequenced a m) s (m a) -> s -> m () #

sequenceAOf_ :: Functor f => Getting (Traversed a f) s (f a) -> s -> f () #

sequence1Of_ :: Functor f => Getting (TraversedF a f) s (f a) -> s -> f () #

replicated :: Int -> Fold a a #

repeated :: Apply f => LensLike' f a a #

productOf :: Num a => Getting (Endo (Endo a)) s a -> s -> a #

previews :: MonadReader s m => Getting (First r) s a -> (a -> r) -> m (Maybe r) #

preview :: MonadReader s m => Getting (First a) s a -> m (Maybe a) #

preuses :: MonadState s m => Getting (First r) s a -> (a -> r) -> m (Maybe r) #

preuse :: MonadState s m => Getting (First a) s a -> m (Maybe a) #

orOf :: Getting Any s Bool -> s -> Bool #

nullOf :: Getting All s a -> s -> Bool #

notNullOf :: Getting Any s a -> s -> Bool #

notElemOf :: Eq a => Getting All s a -> a -> s -> Bool #

noneOf :: Getting Any s a -> (a -> Bool) -> s -> Bool #

msumOf :: MonadPlus m => Getting (Endo (m a)) s (m a) -> s -> m a #

minimumOf :: Ord a => Getting (Endo (Endo (Maybe a))) s a -> s -> Maybe a #

minimumByOf :: Getting (Endo (Endo (Maybe a))) s a -> (a -> a -> Ordering) -> s -> Maybe a #

minimum1Of :: Ord a => Getting (Min a) s a -> s -> a #

maximumOf :: Ord a => Getting (Endo (Endo (Maybe a))) s a -> s -> Maybe a #

maximumByOf :: Getting (Endo (Endo (Maybe a))) s a -> (a -> a -> Ordering) -> s -> Maybe a #

maximum1Of :: Ord a => Getting (Max a) s a -> s -> a #

mapMOf_ :: Monad m => Getting (Sequenced r m) s a -> (a -> m r) -> s -> m () #

lookupOf :: Eq k => Getting (Endo (Maybe v)) s (k, v) -> k -> s -> Maybe v #

lengthOf :: Getting (Endo (Endo Int)) s a -> s -> Int #

lastOf :: Getting (Rightmost a) s a -> s -> Maybe a #

last1Of :: Getting (Last a) s a -> s -> a #

itraverseOf_ :: Functor f => IndexedGetting i (Traversed r f) s a -> (i -> a -> f r) -> s -> f () #

itoListOf :: IndexedGetting i (Endo [(i, a)]) s a -> s -> [(i, a)] #

iterated :: Apply f => (a -> a) -> LensLike' f a a #

itakingWhile :: (Indexable i p, Profunctor q, Contravariant f, Applicative f) => (i -> a -> Bool) -> Optical' (Indexed i) q (Const (Endo (f s)) :: * -> *) s a -> Optical' p q f s a #

ipreviews :: MonadReader s m => IndexedGetting i (First r) s a -> (i -> a -> r) -> m (Maybe r) #

ipreview :: MonadReader s m => IndexedGetting i (First (i, a)) s a -> m (Maybe (i, a)) #

ipreuses :: MonadState s m => IndexedGetting i (First r) s a -> (i -> a -> r) -> m (Maybe r) #

ipreuse :: MonadState s m => IndexedGetting i (First (i, a)) s a -> m (Maybe (i, a)) #

ipre :: IndexedGetting i (First (i, a)) s a -> IndexPreservingGetter s (Maybe (i, a)) #

inoneOf :: IndexedGetting i Any s a -> (i -> a -> Bool) -> s -> Bool #

imapMOf_ :: Monad m => IndexedGetting i (Sequenced r m) s a -> (i -> a -> m r) -> s -> m () #

iforOf_ :: Functor f => IndexedGetting i (Traversed r f) s a -> s -> (i -> a -> f r) -> f () #

iforMOf_ :: Monad m => IndexedGetting i (Sequenced r m) s a -> s -> (i -> a -> m r) -> m () #

ifoldring :: (Indexable i p, Contravariant f, Applicative f) => ((i -> a -> f a -> f a) -> f a -> s -> f a) -> Over p f s t a b #

ifoldrOf' :: IndexedGetting i (Dual (Endo (r -> r))) s a -> (i -> a -> r -> r) -> r -> s -> r #

ifoldrOf :: IndexedGetting i (Endo r) s a -> (i -> a -> r -> r) -> r -> s -> r #

ifoldrMOf :: Monad m => IndexedGetting i (Dual (Endo (r -> m r))) s a -> (i -> a -> r -> m r) -> r -> s -> m r #

ifoldlOf' :: IndexedGetting i (Endo (r -> r)) s a -> (i -> r -> a -> r) -> r -> s -> r #

ifoldlOf :: IndexedGetting i (Dual (Endo r)) s a -> (i -> r -> a -> r) -> r -> s -> r #

ifoldlMOf :: Monad m => IndexedGetting i (Endo (r -> m r)) s a -> (i -> r -> a -> m r) -> r -> s -> m r #

ifolding :: (Foldable f, Indexable i p, Contravariant g, Applicative g) => (s -> f (i, a)) -> Over p g s t a b #

ifoldMapOf :: IndexedGetting i m s a -> (i -> a -> m) -> s -> m #

ifindOf :: IndexedGetting i (Endo (Maybe a)) s a -> (i -> a -> Bool) -> s -> Maybe a #

ifindMOf :: Monad m => IndexedGetting i (Endo (m (Maybe a))) s a -> (i -> a -> m Bool) -> s -> m (Maybe a) #

ifiltered :: (Indexable i p, Applicative f) => (i -> a -> Bool) -> Optical' p (Indexed i) f a a #

idroppingWhile :: (Indexable i p, Profunctor q, Applicative f) => (i -> a -> Bool) -> Optical (Indexed i) q (Compose (State Bool) f) s t a a -> Optical p q f s t a a #

iconcatMapOf :: IndexedGetting i [r] s a -> (i -> a -> [r]) -> s -> [r] #

ianyOf :: IndexedGetting i Any s a -> (i -> a -> Bool) -> s -> Bool #

iallOf :: IndexedGetting i All s a -> (i -> a -> Bool) -> s -> Bool #

hasn't :: Getting All s a -> s -> Bool #

has :: Getting Any s a -> s -> Bool #

forOf_ :: Functor f => Getting (Traversed r f) s a -> s -> (a -> f r) -> f () #

forMOf_ :: Monad m => Getting (Sequenced r m) s a -> s -> (a -> m r) -> m () #

for1Of_ :: Functor f => Getting (TraversedF r f) s a -> s -> (a -> f r) -> f () #

foldring :: (Contravariant f, Applicative f) => ((a -> f a -> f a) -> f a -> s -> f a) -> LensLike f s t a b #

foldrOf' :: Getting (Dual (Endo (Endo r))) s a -> (a -> r -> r) -> r -> s -> r #

foldrOf :: Getting (Endo r) s a -> (a -> r -> r) -> r -> s -> r #

foldrMOf :: Monad m => Getting (Dual (Endo (r -> m r))) s a -> (a -> r -> m r) -> r -> s -> m r #

foldr1Of' :: HasCallStack => Getting (Dual (Endo (Endo (Maybe a)))) s a -> (a -> a -> a) -> s -> a #

foldr1Of :: HasCallStack => Getting (Endo (Maybe a)) s a -> (a -> a -> a) -> s -> a #

foldlOf' :: Getting (Endo (Endo r)) s a -> (r -> a -> r) -> r -> s -> r #

foldlOf :: Getting (Dual (Endo r)) s a -> (r -> a -> r) -> r -> s -> r #

foldlMOf :: Monad m => Getting (Endo (r -> m r)) s a -> (r -> a -> m r) -> r -> s -> m r #

foldl1Of' :: HasCallStack => Getting (Endo (Endo (Maybe a))) s a -> (a -> a -> a) -> s -> a #

foldl1Of :: HasCallStack => Getting (Dual (Endo (Maybe a))) s a -> (a -> a -> a) -> s -> a #

folding :: Foldable f => (s -> f a) -> Fold s a #

folded :: Foldable f => IndexedFold Int (f a) a #

foldOf :: Getting a s a -> s -> a #

foldMapOf :: Getting r s a -> (a -> r) -> s -> r #

foldMapByOf :: Fold s a -> (r -> r -> r) -> r -> (a -> r) -> s -> r #

foldByOf :: Fold s a -> (a -> a -> a) -> a -> s -> a #

firstOf :: Getting (Leftmost a) s a -> s -> Maybe a #

first1Of :: Getting (First a) s a -> s -> a #

findOf :: Getting (Endo (Maybe a)) s a -> (a -> Bool) -> s -> Maybe a #

findMOf :: Monad m => Getting (Endo (m (Maybe a))) s a -> (a -> m Bool) -> s -> m (Maybe a) #

findIndicesOf :: IndexedGetting i (Endo [i]) s a -> (a -> Bool) -> s -> [i] #

findIndexOf :: IndexedGetting i (First i) s a -> (a -> Bool) -> s -> Maybe i #

filtered :: (Choice p, Applicative f) => (a -> Bool) -> Optic' p f a a #

elemOf :: Eq a => Getting Any s a -> a -> s -> Bool #

elemIndicesOf :: Eq a => IndexedGetting i (Endo [i]) s a -> a -> s -> [i] #

elemIndexOf :: Eq a => IndexedGetting i (First i) s a -> a -> s -> Maybe i #

droppingWhile :: (Conjoined p, Profunctor q, Applicative f) => (a -> Bool) -> Optical p q (Compose (State Bool) f) s t a a -> Optical p q f s t a a #

cycled :: Apply f => LensLike f s t a b -> LensLike f s t a b #

concatOf :: Getting [r] s [r] -> s -> [r] #

concatMapOf :: Getting [r] s a -> (a -> [r]) -> s -> [r] #

backwards :: (Profunctor p, Profunctor q) => Optical p q (Backwards f) s t a b -> Optical p q f s t a b #

asumOf :: Alternative f => Getting (Endo (f a)) s (f a) -> s -> f a #

anyOf :: Getting Any s a -> (a -> Bool) -> s -> Bool #

andOf :: Getting All s Bool -> s -> Bool #

allOf :: Getting All s a -> (a -> Bool) -> s -> Bool #

(^@?!) :: HasCallStack => s -> IndexedGetting i (Endo (i, a)) s a -> (i, a) #

(^@?) :: s -> IndexedGetting i (Endo (Maybe (i, a))) s a -> Maybe (i, a) #

(^@..) :: s -> IndexedGetting i (Endo [(i, a)]) s a -> [(i, a)] #

(^?!) :: HasCallStack => s -> Getting (Endo a) s a -> a #

(^?) :: s -> Getting (First a) s a -> Maybe a #

(^..) :: s -> Getting (Endo [a]) s a -> [a] #

substEq :: AnEquality s t a b -> ((s ~ a) -> (t ~ b) -> r) -> r #

simply :: (Optic' p f s a -> r) -> Optic' p f s a -> r #

simple :: p a (f a) -> p a (f a) #

runEq :: AnEquality s t a b -> Identical s t a b #

mapEq :: AnEquality s t a b -> f s -> f a #

fromEq :: AnEquality s t a b -> Equality b a t s #

pattern Empty :: forall s. AsEmpty s => s #

(|>) :: Snoc s s a a => s -> a -> s #

unsnoc :: Snoc s s a a => s -> Maybe (s, a) #

uncons :: Cons s s a a => s -> Maybe (a, s) #

snoc :: Snoc s s a a => s -> a -> s #

cons :: Cons s s a a => a -> s -> s #

_tail :: Cons s s a a => Traversal' s s #

_last :: Snoc s s a a => Traversal' s a #

_init :: Snoc s s a a => Traversal' s s #

_head :: Cons s s a a => Traversal' s a #

(<|) :: Cons s s a a => a -> s -> s #

pattern (:>) :: forall a b. Snoc a a b b => a -> b -> a #

pattern (:<) :: forall b a. Cons b b a a => a -> b -> b #

sans :: At m => Index m -> m -> m #

ixAt :: At m => Index m -> Traversal' m (IxValue m) #

iix :: Ixed m => Index m -> IndexedTraversal' (Index m) m (IxValue m) #

iat :: At m => Index m -> IndexedLens' (Index m) m (Maybe (IxValue m)) #

class Default a where #

A class for types with a default value.

Methods

def :: a #

The default value for this type.

Instances
Default Double 
Instance details

Defined in Data.Default.Class

Methods

def :: Double #

Default Float 
Instance details

Defined in Data.Default.Class

Methods

def :: Float #

Default Int 
Instance details

Defined in Data.Default.Class

Methods

def :: Int #

Default Int8 
Instance details

Defined in Data.Default.Class

Methods

def :: Int8 #

Default Int16 
Instance details

Defined in Data.Default.Class

Methods

def :: Int16 #

Default Int32 
Instance details

Defined in Data.Default.Class

Methods

def :: Int32 #

Default Int64 
Instance details

Defined in Data.Default.Class

Methods

def :: Int64 #

Default Integer 
Instance details

Defined in Data.Default.Class

Methods

def :: Integer #

Default Ordering 
Instance details

Defined in Data.Default.Class

Methods

def :: Ordering #

Default Word 
Instance details

Defined in Data.Default.Class

Methods

def :: Word #

Default Word8 
Instance details

Defined in Data.Default.Class

Methods

def :: Word8 #

Default Word16 
Instance details

Defined in Data.Default.Class

Methods

def :: Word16 #

Default Word32 
Instance details

Defined in Data.Default.Class

Methods

def :: Word32 #

Default Word64 
Instance details

Defined in Data.Default.Class

Methods

def :: Word64 #

Default () 
Instance details

Defined in Data.Default.Class

Methods

def :: () #

Default CState 
Instance details

Defined in Graphics.Rendering.Chart.State

Methods

def :: CState #

Default VectorStyle 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Vectors

Methods

def :: VectorStyle #

Default AxisVisibility

By default all parts of a axis are visible.

Instance details

Defined in Graphics.Rendering.Chart.Axis.Types

Methods

def :: AxisVisibility #

Default AxisStyle 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Types

Methods

def :: AxisStyle #

Default LegendStyle 
Instance details

Defined in Graphics.Rendering.Chart.Legend

Methods

def :: LegendStyle #

Default PieLayout 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Pie

Methods

def :: PieLayout #

Default PieChart 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Pie

Methods

def :: PieChart #

Default PieItem 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Pie

Methods

def :: PieItem #

Default Rectangle 
Instance details

Defined in Graphics.Rendering.Chart.Renderable

Methods

def :: Rectangle #

Default PointStyle

Default style to use for points.

Instance details

Defined in Graphics.Rendering.Chart.Drawing

Methods

def :: PointStyle #

Default LineStyle

The default line style.

Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Methods

def :: LineStyle #

Default FontSlant

The default font slant.

Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Methods

def :: FontSlant #

Default FontWeight

The default font weight.

Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Methods

def :: FontWeight #

Default FontStyle

The default font style.

Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Methods

def :: FontStyle #

Default FillStyle

The default fill style.

Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Methods

def :: FillStyle #

Default FileOptions 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Cairo

Methods

def :: FileOptions #

Default All 
Instance details

Defined in Data.Default.Class

Methods

def :: All #

Default Any 
Instance details

Defined in Data.Default.Class

Methods

def :: Any #

Default CShort 
Instance details

Defined in Data.Default.Class

Methods

def :: CShort #

Default CUShort 
Instance details

Defined in Data.Default.Class

Methods

def :: CUShort #

Default CInt 
Instance details

Defined in Data.Default.Class

Methods

def :: CInt #

Default CUInt 
Instance details

Defined in Data.Default.Class

Methods

def :: CUInt #

Default CLong 
Instance details

Defined in Data.Default.Class

Methods

def :: CLong #

Default CULong 
Instance details

Defined in Data.Default.Class

Methods

def :: CULong #

Default CLLong 
Instance details

Defined in Data.Default.Class

Methods

def :: CLLong #

Default CULLong 
Instance details

Defined in Data.Default.Class

Methods

def :: CULLong #

Default CFloat 
Instance details

Defined in Data.Default.Class

Methods

def :: CFloat #

Default CDouble 
Instance details

Defined in Data.Default.Class

Methods

def :: CDouble #

Default CPtrdiff 
Instance details

Defined in Data.Default.Class

Methods

def :: CPtrdiff #

Default CSize 
Instance details

Defined in Data.Default.Class

Methods

def :: CSize #

Default CSigAtomic 
Instance details

Defined in Data.Default.Class

Methods

def :: CSigAtomic #

Default CClock 
Instance details

Defined in Data.Default.Class

Methods

def :: CClock #

Default CTime 
Instance details

Defined in Data.Default.Class

Methods

def :: CTime #

Default CUSeconds 
Instance details

Defined in Data.Default.Class

Methods

def :: CUSeconds #

Default CSUSeconds 
Instance details

Defined in Data.Default.Class

Methods

def :: CSUSeconds #

Default CIntPtr 
Instance details

Defined in Data.Default.Class

Methods

def :: CIntPtr #

Default CUIntPtr 
Instance details

Defined in Data.Default.Class

Methods

def :: CUIntPtr #

Default CIntMax 
Instance details

Defined in Data.Default.Class

Methods

def :: CIntMax #

Default CUIntMax 
Instance details

Defined in Data.Default.Class

Methods

def :: CUIntMax #

Default NormalisationMethod 
Instance details

Defined in Plots.Types.Histogram

Default AxisLineType 
Instance details

Defined in Plots.Axis.Line

Methods

def :: AxisLineType #

Default LogScale 
Instance details

Defined in Plots.Axis.Scale

Methods

def :: LogScale #

Default FillRule 
Instance details

Defined in Diagrams.TwoD.Path

Methods

def :: FillRule #

Default CairoState 
Instance details

Defined in Diagrams.Backend.Cairo.Internal

Methods

def :: CairoState #

Default FontSlant 
Instance details

Defined in Diagrams.TwoD.Text

Methods

def :: FontSlant #

Default FontWeight 
Instance details

Defined in Diagrams.TwoD.Text

Methods

def :: FontWeight #

Default [a] 
Instance details

Defined in Data.Default.Class

Methods

def :: [a] #

Default (Maybe a) 
Instance details

Defined in Data.Default.Class

Methods

def :: Maybe a #

Integral a => Default (Ratio a) 
Instance details

Defined in Data.Default.Class

Methods

def :: Ratio a #

Default a => Default (IO a) 
Instance details

Defined in Data.Default.Class

Methods

def :: IO a #

PlotValue t => Default (LayoutAxis t) 
Instance details

Defined in Graphics.Rendering.Chart.Layout

Methods

def :: LayoutAxis t #

Default (StackedLayouts x)

A empty StackedLayout with compressions applied.

Instance details

Defined in Graphics.Rendering.Chart.Layout

Methods

def :: StackedLayouts x #

(Show a, RealFloat a) => Default (LinearAxisParams a) 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Methods

def :: LinearAxisParams a #

(Show a, RealFloat a) => Default (LogAxisParams a) 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Methods

def :: LogAxisParams a #

(Default a, RealFloat a) => Default (Complex a) 
Instance details

Defined in Data.Default.Class

Methods

def :: Complex a #

Default (First a) 
Instance details

Defined in Data.Default.Class

Methods

def :: First a #

Default (Last a) 
Instance details

Defined in Data.Default.Class

Methods

def :: Last a #

Default a => Default (Dual a) 
Instance details

Defined in Data.Default.Class

Methods

def :: Dual a #

Default (Endo a) 
Instance details

Defined in Data.Default.Class

Methods

def :: Endo a #

Num a => Default (Sum a) 
Instance details

Defined in Data.Default.Class

Methods

def :: Sum a #

Num a => Default (Product a) 
Instance details

Defined in Data.Default.Class

Methods

def :: Product a #

Fractional n => Default (BarLayout n) 
Instance details

Defined in Plots.Types.Bar

Methods

def :: BarLayout n #

Default (HistogramOptions n) 
Instance details

Defined in Plots.Types.Histogram

Methods

def :: HistogramOptions n #

Fractional n => Default (AxisScaling n) 
Instance details

Defined in Plots.Axis.Scale

Methods

def :: AxisScaling n #

TypeableFloat n => Default (ArrowOpts n) 
Instance details

Defined in Diagrams.TwoD.Arrow

Methods

def :: ArrowOpts n #

OrderedField n => Default (EnvelopeOpts n) 
Instance details

Defined in Diagrams.TwoD.Model

Methods

def :: EnvelopeOpts n #

Fractional n => Default (OriginOpts n) 
Instance details

Defined in Diagrams.TwoD.Model

Methods

def :: OriginOpts n #

Floating n => Default (TraceOpts n) 
Instance details

Defined in Diagrams.TwoD.Model

Methods

def :: TraceOpts n #

Default (StrokeOpts a) 
Instance details

Defined in Diagrams.TwoD.Path

Methods

def :: StrokeOpts a #

Num n => Default (PolygonOpts n) 
Instance details

Defined in Diagrams.TwoD.Polygons

Methods

def :: PolygonOpts n #

Num d => Default (RoundedRectOpts d) 
Instance details

Defined in Diagrams.TwoD.Shapes

Methods

def :: RoundedRectOpts d #

Default (FillTexture n) 
Instance details

Defined in Diagrams.TwoD.Attributes

Methods

def :: FillTexture n #

Default (LineTexture n) 
Instance details

Defined in Diagrams.TwoD.Attributes

Methods

def :: LineTexture n #

Num n => Default (FontSizeM n) 
Instance details

Defined in Diagrams.TwoD.Text

Methods

def :: FontSizeM n #

Default r => Default (e -> r) 
Instance details

Defined in Data.Default.Class

Methods

def :: e -> r #

(Default a, Default b) => Default (a, b) 
Instance details

Defined in Data.Default.Class

Methods

def :: (a, b) #

(PlotValue x, PlotValue y) => Default (Layout x y)

Empty Layout without title and plots. The background is white and the grid is drawn beneath all plots. There will be a legend. The top and right axis will not be visible.

Instance details

Defined in Graphics.Rendering.Chart.Layout

Methods

def :: Layout x y #

Default (PlotHist x Int) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Histogram

Methods

def :: PlotHist x Int #

BarsPlotValue y => Default (PlotBars x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Bars

Methods

def :: PlotBars x y #

Default (PlotVectors x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Vectors

Methods

def :: PlotVectors x y #

Default (PlotAnnotation x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Annotation

Methods

def :: PlotAnnotation x y #

Default (PlotCandle x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Candle

Methods

def :: PlotCandle x y #

Default (PlotErrBars x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.ErrBars

Methods

def :: PlotErrBars x y #

Default (PlotFillBetween x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.FillBetween

Methods

def :: PlotFillBetween x y #

Default (PlotLines x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Lines

Methods

def :: PlotLines x y #

Default (PlotPoints x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Points

Methods

def :: PlotPoints x y #

TypeableFloat n => Default (MajorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

def :: MajorTicks v n #

TypeableFloat n => Default (MinorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

def :: MinorTicks v n #

TypeableFloat n => Default (Ticks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

def :: Ticks v n #

(Typeable n, Floating n) => Default (MajorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Methods

def :: MajorGridLines v n #

(Typeable n, Floating n) => Default (MinorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Methods

def :: MinorGridLines v n #

(Typeable n, Floating n) => Default (GridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Methods

def :: GridLines v n #

Typeable n => Default (AxisLine v n) 
Instance details

Defined in Plots.Axis.Line

Methods

def :: AxisLine v n #

(TypeableFloat n, Renderable (Text n) b) => Default (Legend b n) 
Instance details

Defined in Plots.Legend

Methods

def :: Legend b n #

(Default a, Default b, Default c) => Default (a, b, c) 
Instance details

Defined in Data.Default.Class

Methods

def :: (a, b, c) #

(PlotValue x, PlotValue y1, PlotValue y2) => Default (LayoutLR x y1 y2)

Empty LayoutLR without title and plots. The background is white and the grid is drawn beneath all plots. There will be a legend. The top axis will not be visible.

Instance details

Defined in Graphics.Rendering.Chart.Layout

Methods

def :: LayoutLR x y1 y2 #

Default (AreaSpots z x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.AreaSpots

Methods

def :: AreaSpots z x y #

(TypeableFloat n, Renderable (Text n) b) => Default (SingleAxis b V2 n) 
Instance details

Defined in Plots.Axis

Methods

def :: SingleAxis b V2 n #

(TypeableFloat n, Renderable (Text n) b) => Default (AxisLabel b V2 n) 
Instance details

Defined in Plots.Axis.Labels

Methods

def :: AxisLabel b V2 n #

(TypeableFloat n, Renderable (Text n) b) => Default (TickLabels b V2 n) 
Instance details

Defined in Plots.Axis.Labels

Methods

def :: TickLabels b V2 n #

(Renderable (Text n) b, TypeableFloat n) => Default (Title b V2 n) 
Instance details

Defined in Plots.Axis.Title

Methods

def :: Title b V2 n #

(Additive v, Num n) => Default (PlotMods b v n) 
Instance details

Defined in Plots.Types

Methods

def :: PlotMods b v n #

Default (LegendPic b v n) 
Instance details

Defined in Plots.Types

Methods

def :: LegendPic b v n #

(Additive v, Num n) => Default (PlotOptions b v n) 
Instance details

Defined in Plots.Types

Methods

def :: PlotOptions b v n #

(Default a, Default b, Default c, Default d) => Default (a, b, c, d) 
Instance details

Defined in Data.Default.Class

Methods

def :: (a, b, c, d) #

Default (AreaSpots4D z t x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.AreaSpots

Methods

def :: AreaSpots4D z t x y #

(Default a, Default b, Default c, Default d, Default e) => Default (a, b, c, d, e) 
Instance details

Defined in Data.Default.Class

Methods

def :: (a, b, c, d, e) #

(Default a, Default b, Default c, Default d, Default e, Default f) => Default (a, b, c, d, e, f) 
Instance details

Defined in Data.Default.Class

Methods

def :: (a, b, c, d, e, f) #

(Default a, Default b, Default c, Default d, Default e, Default f, Default g) => Default (a, b, c, d, e, f, g) 
Instance details

Defined in Data.Default.Class

Methods

def :: (a, b, c, d, e, f, g) #

readColourName :: (Monad m, Ord a, Floating a) => String -> m (Colour a) #

aliceblue :: (Ord a, Floating a) => Colour a #

aqua :: (Ord a, Floating a) => Colour a #

aquamarine :: (Ord a, Floating a) => Colour a #

azure :: (Ord a, Floating a) => Colour a #

beige :: (Ord a, Floating a) => Colour a #

bisque :: (Ord a, Floating a) => Colour a #

blue :: (Ord a, Floating a) => Colour a #

blueviolet :: (Ord a, Floating a) => Colour a #

brown :: (Ord a, Floating a) => Colour a #

burlywood :: (Ord a, Floating a) => Colour a #

cadetblue :: (Ord a, Floating a) => Colour a #

chartreuse :: (Ord a, Floating a) => Colour a #

chocolate :: (Ord a, Floating a) => Colour a #

coral :: (Ord a, Floating a) => Colour a #

cornsilk :: (Ord a, Floating a) => Colour a #

crimson :: (Ord a, Floating a) => Colour a #

cyan :: (Ord a, Floating a) => Colour a #

darkblue :: (Ord a, Floating a) => Colour a #

darkcyan :: (Ord a, Floating a) => Colour a #

darkgray :: (Ord a, Floating a) => Colour a #

darkgreen :: (Ord a, Floating a) => Colour a #

darkgrey :: (Ord a, Floating a) => Colour a #

darkkhaki :: (Ord a, Floating a) => Colour a #

darkorange :: (Ord a, Floating a) => Colour a #

darkorchid :: (Ord a, Floating a) => Colour a #

darkred :: (Ord a, Floating a) => Colour a #

darksalmon :: (Ord a, Floating a) => Colour a #

darkviolet :: (Ord a, Floating a) => Colour a #

deeppink :: (Ord a, Floating a) => Colour a #

dimgray :: (Ord a, Floating a) => Colour a #

dimgrey :: (Ord a, Floating a) => Colour a #

dodgerblue :: (Ord a, Floating a) => Colour a #

firebrick :: (Ord a, Floating a) => Colour a #

fuchsia :: (Ord a, Floating a) => Colour a #

gainsboro :: (Ord a, Floating a) => Colour a #

ghostwhite :: (Ord a, Floating a) => Colour a #

gold :: (Ord a, Floating a) => Colour a #

goldenrod :: (Ord a, Floating a) => Colour a #

gray :: (Ord a, Floating a) => Colour a #

grey :: (Ord a, Floating a) => Colour a #

green :: (Ord a, Floating a) => Colour a #

honeydew :: (Ord a, Floating a) => Colour a #

hotpink :: (Ord a, Floating a) => Colour a #

indianred :: (Ord a, Floating a) => Colour a #

indigo :: (Ord a, Floating a) => Colour a #

ivory :: (Ord a, Floating a) => Colour a #

khaki :: (Ord a, Floating a) => Colour a #

lavender :: (Ord a, Floating a) => Colour a #

lawngreen :: (Ord a, Floating a) => Colour a #

lightblue :: (Ord a, Floating a) => Colour a #

lightcoral :: (Ord a, Floating a) => Colour a #

lightcyan :: (Ord a, Floating a) => Colour a #

lightgray :: (Ord a, Floating a) => Colour a #

lightgreen :: (Ord a, Floating a) => Colour a #

lightgrey :: (Ord a, Floating a) => Colour a #

lightpink :: (Ord a, Floating a) => Colour a #

lime :: (Ord a, Floating a) => Colour a #

limegreen :: (Ord a, Floating a) => Colour a #

linen :: (Ord a, Floating a) => Colour a #

magenta :: (Ord a, Floating a) => Colour a #

maroon :: (Ord a, Floating a) => Colour a #

mediumblue :: (Ord a, Floating a) => Colour a #

mintcream :: (Ord a, Floating a) => Colour a #

mistyrose :: (Ord a, Floating a) => Colour a #

moccasin :: (Ord a, Floating a) => Colour a #

navy :: (Ord a, Floating a) => Colour a #

oldlace :: (Ord a, Floating a) => Colour a #

olive :: (Ord a, Floating a) => Colour a #

olivedrab :: (Ord a, Floating a) => Colour a #

orange :: (Ord a, Floating a) => Colour a #

orangered :: (Ord a, Floating a) => Colour a #

orchid :: (Ord a, Floating a) => Colour a #

palegreen :: (Ord a, Floating a) => Colour a #

papayawhip :: (Ord a, Floating a) => Colour a #

peachpuff :: (Ord a, Floating a) => Colour a #

peru :: (Ord a, Floating a) => Colour a #

pink :: (Ord a, Floating a) => Colour a #

plum :: (Ord a, Floating a) => Colour a #

powderblue :: (Ord a, Floating a) => Colour a #

purple :: (Ord a, Floating a) => Colour a #

red :: (Ord a, Floating a) => Colour a #

rosybrown :: (Ord a, Floating a) => Colour a #

royalblue :: (Ord a, Floating a) => Colour a #

salmon :: (Ord a, Floating a) => Colour a #

sandybrown :: (Ord a, Floating a) => Colour a #

seagreen :: (Ord a, Floating a) => Colour a #

seashell :: (Ord a, Floating a) => Colour a #

sienna :: (Ord a, Floating a) => Colour a #

silver :: (Ord a, Floating a) => Colour a #

skyblue :: (Ord a, Floating a) => Colour a #

slateblue :: (Ord a, Floating a) => Colour a #

slategray :: (Ord a, Floating a) => Colour a #

slategrey :: (Ord a, Floating a) => Colour a #

snow :: (Ord a, Floating a) => Colour a #

steelblue :: (Ord a, Floating a) => Colour a #

tan :: (Ord a, Floating a) => Colour a #

teal :: (Ord a, Floating a) => Colour a #

thistle :: (Ord a, Floating a) => Colour a #

tomato :: (Ord a, Floating a) => Colour a #

turquoise :: (Ord a, Floating a) => Colour a #

violet :: (Ord a, Floating a) => Colour a #

wheat :: (Ord a, Floating a) => Colour a #

white :: (Ord a, Floating a) => Colour a #

whitesmoke :: (Ord a, Floating a) => Colour a #

yellow :: (Ord a, Floating a) => Colour a #

(<&>) :: Functor f => f a -> (a -> b) -> f b infixl 1 #

Flipped version of <$>.

(<&>) = flip fmap

Examples

Expand

Apply (+1) to a list, a Just and a Right:

>>> Just 2 <&> (+1)
Just 3
>>> [1,2,3] <&> (+1)
[2,3,4]
>>> Right 3 <&> (+1)
Right 4

Since: base-4.11.0.0

(&) :: a -> (a -> b) -> b infixl 1 #

& is a reverse application operator. This provides notational convenience. Its precedence is one higher than that of the forward application operator $, which allows & to be nested in $.

>>> 5 & (+1) & show
"6"

Since: base-4.8.0.0

newtype Const a (b :: k) :: forall k. * -> k -> * #

The Const functor.

Constructors

Const 

Fields

Instances
Generic1 (Const a :: k -> *) 
Instance details

Defined in Data.Functor.Const

Associated Types

type Rep1 (Const a) :: k -> * #

Methods

from1 :: Const a a0 -> Rep1 (Const a) a0 #

to1 :: Rep1 (Const a) a0 -> Const a a0 #

Bifunctor (Const :: * -> * -> *)

Since: base-4.8.0.0

Instance details

Defined in Data.Bifunctor

Methods

bimap :: (a -> b) -> (c -> d) -> Const a c -> Const b d #

first :: (a -> b) -> Const a c -> Const b c #

second :: (b -> c) -> Const a b -> Const a c #

Bitraversable (Const :: * -> * -> *)

Since: base-4.10.0.0

Instance details

Defined in Data.Bitraversable

Methods

bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Const a b -> f (Const c d) #

Bifoldable (Const :: * -> * -> *)

Since: base-4.10.0.0

Instance details

Defined in Data.Bifoldable

Methods

bifold :: Monoid m => Const m m -> m #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> Const a b -> m #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> Const a b -> c #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> Const a b -> c #

Eq2 (Const :: * -> * -> *)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftEq2 :: (a -> b -> Bool) -> (c -> d -> Bool) -> Const a c -> Const b d -> Bool #

Ord2 (Const :: * -> * -> *)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftCompare2 :: (a -> b -> Ordering) -> (c -> d -> Ordering) -> Const a c -> Const b d -> Ordering #

Read2 (Const :: * -> * -> *)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftReadsPrec2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> Int -> ReadS (Const a b) #

liftReadList2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> ReadS [Const a b] #

liftReadPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec (Const a b) #

liftReadListPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec [Const a b] #

Show2 (Const :: * -> * -> *)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftShowsPrec2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> Int -> Const a b -> ShowS #

liftShowList2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> [Const a b] -> ShowS #

NFData2 (Const :: * -> * -> *)

Since: deepseq-1.4.3.0

Instance details

Defined in Control.DeepSeq

Methods

liftRnf2 :: (a -> ()) -> (b -> ()) -> Const a b -> () #

Biapplicative (Const :: * -> * -> *) 
Instance details

Defined in Data.Biapplicative

Methods

bipure :: a -> b -> Const a b

(<<*>>) :: Const (a -> b) (c -> d) -> Const a c -> Const b d

biliftA2 :: (a -> b -> c) -> (d -> e -> f) -> Const a d -> Const b e -> Const c f

(*>>) :: Const a b -> Const c d -> Const c d

(<<*) :: Const a b -> Const c d -> Const a b

Hashable2 (Const :: * -> * -> *) 
Instance details

Defined in Data.Hashable.Class

Methods

liftHashWithSalt2 :: (Int -> a -> Int) -> (Int -> b -> Int) -> Int -> Const a b -> Int

Bitraversable1 (Const :: * -> * -> *) 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

bitraverse1 :: Apply f => (a -> f b) -> (c -> f d) -> Const a c -> f (Const b d)

bisequence1 :: Apply f => Const (f a) (f b) -> f (Const a b)

Biapply (Const :: * -> * -> *) 
Instance details

Defined in Data.Functor.Bind.Class

Methods

(<<.>>) :: Const (a -> b) (c -> d) -> Const a c -> Const b d

(.>>) :: Const a b -> Const c d -> Const c d

(<<.) :: Const a b -> Const c d -> Const a b

Functor (Const m :: * -> *)

Since: base-2.1

Instance details

Defined in Data.Functor.Const

Methods

fmap :: (a -> b) -> Const m a -> Const m b #

(<$) :: a -> Const m b -> Const m a #

Monoid m => Applicative (Const m :: * -> *)

Since: base-2.0.1

Instance details

Defined in Data.Functor.Const

Methods

pure :: a -> Const m a #

(<*>) :: Const m (a -> b) -> Const m a -> Const m b #

liftA2 :: (a -> b -> c) -> Const m a -> Const m b -> Const m c #

(*>) :: Const m a -> Const m b -> Const m b #

(<*) :: Const m a -> Const m b -> Const m a #

Foldable (Const m :: * -> *)

Since: base-4.7.0.0

Instance details

Defined in Data.Functor.Const

Methods

fold :: Monoid m0 => Const m m0 -> m0 #

foldMap :: Monoid m0 => (a -> m0) -> Const m a -> m0 #

foldr :: (a -> b -> b) -> b -> Const m a -> b #

foldr' :: (a -> b -> b) -> b -> Const m a -> b #

foldl :: (b -> a -> b) -> b -> Const m a -> b #

foldl' :: (b -> a -> b) -> b -> Const m a -> b #

foldr1 :: (a -> a -> a) -> Const m a -> a #

foldl1 :: (a -> a -> a) -> Const m a -> a #

toList :: Const m a -> [a] #

null :: Const m a -> Bool #

length :: Const m a -> Int #

elem :: Eq a => a -> Const m a -> Bool #

maximum :: Ord a => Const m a -> a #

minimum :: Ord a => Const m a -> a #

sum :: Num a => Const m a -> a #

product :: Num a => Const m a -> a #

Traversable (Const m :: * -> *)

Since: base-4.7.0.0

Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> Const m a -> f (Const m b) #

sequenceA :: Applicative f => Const m (f a) -> f (Const m a) #

mapM :: Monad m0 => (a -> m0 b) -> Const m a -> m0 (Const m b) #

sequence :: Monad m0 => Const m (m0 a) -> m0 (Const m a) #

Contravariant (Const a :: * -> *) 
Instance details

Defined in Data.Functor.Contravariant

Methods

contramap :: (a0 -> b) -> Const a b -> Const a a0 #

(>$) :: b -> Const a b -> Const a a0 #

Eq a => Eq1 (Const a :: * -> *)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftEq :: (a0 -> b -> Bool) -> Const a a0 -> Const a b -> Bool #

Ord a => Ord1 (Const a :: * -> *)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftCompare :: (a0 -> b -> Ordering) -> Const a a0 -> Const a b -> Ordering #

Read a => Read1 (Const a :: * -> *)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftReadsPrec :: (Int -> ReadS a0) -> ReadS [a0] -> Int -> ReadS (Const a a0) #

liftReadList :: (Int -> ReadS a0) -> ReadS [a0] -> ReadS [Const a a0] #

liftReadPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec (Const a a0) #

liftReadListPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec [Const a a0] #

Show a => Show1 (Const a :: * -> *)

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftShowsPrec :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> Int -> Const a a0 -> ShowS #

liftShowList :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> [Const a a0] -> ShowS #

NFData a => NFData1 (Const a :: * -> *)

Since: deepseq-1.4.3.0

Instance details

Defined in Control.DeepSeq

Methods

liftRnf :: (a0 -> ()) -> Const a a0 -> () #

Hashable a => Hashable1 (Const a :: * -> *) 
Instance details

Defined in Data.Hashable.Class

Methods

liftHashWithSalt :: (Int -> a0 -> Int) -> Int -> Const a a0 -> Int

Semigroup m => Apply (Const m :: * -> *) 
Instance details

Defined in Data.Functor.Bind.Class

Methods

(<.>) :: Const m (a -> b) -> Const m a -> Const m b

(.>) :: Const m a -> Const m b -> Const m b

(<.) :: Const m a -> Const m b -> Const m a

liftF2 :: (a -> b -> c) -> Const m a -> Const m b -> Const m c

Bounded a => Bounded (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

minBound :: Const a b #

maxBound :: Const a b #

Enum a => Enum (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

succ :: Const a b -> Const a b #

pred :: Const a b -> Const a b #

toEnum :: Int -> Const a b #

fromEnum :: Const a b -> Int #

enumFrom :: Const a b -> [Const a b] #

enumFromThen :: Const a b -> Const a b -> [Const a b] #

enumFromTo :: Const a b -> Const a b -> [Const a b] #

enumFromThenTo :: Const a b -> Const a b -> Const a b -> [Const a b] #

Eq a => Eq (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

(==) :: Const a b -> Const a b -> Bool #

(/=) :: Const a b -> Const a b -> Bool #

Floating a => Floating (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

pi :: Const a b #

exp :: Const a b -> Const a b #

log :: Const a b -> Const a b #

sqrt :: Const a b -> Const a b #

(**) :: Const a b -> Const a b -> Const a b #

logBase :: Const a b -> Const a b -> Const a b #

sin :: Const a b -> Const a b #

cos :: Const a b -> Const a b #

tan :: Const a b -> Const a b #

asin :: Const a b -> Const a b #

acos :: Const a b -> Const a b #

atan :: Const a b -> Const a b #

sinh :: Const a b -> Const a b #

cosh :: Const a b -> Const a b #

tanh :: Const a b -> Const a b #

asinh :: Const a b -> Const a b #

acosh :: Const a b -> Const a b #

atanh :: Const a b -> Const a b #

log1p :: Const a b -> Const a b #

expm1 :: Const a b -> Const a b #

log1pexp :: Const a b -> Const a b #

log1mexp :: Const a b -> Const a b #

Fractional a => Fractional (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

(/) :: Const a b -> Const a b -> Const a b #

recip :: Const a b -> Const a b #

fromRational :: Rational -> Const a b #

Integral a => Integral (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

quot :: Const a b -> Const a b -> Const a b #

rem :: Const a b -> Const a b -> Const a b #

div :: Const a b -> Const a b -> Const a b #

mod :: Const a b -> Const a b -> Const a b #

quotRem :: Const a b -> Const a b -> (Const a b, Const a b) #

divMod :: Const a b -> Const a b -> (Const a b, Const a b) #

toInteger :: Const a b -> Integer #

Num a => Num (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

(+) :: Const a b -> Const a b -> Const a b #

(-) :: Const a b -> Const a b -> Const a b #

(*) :: Const a b -> Const a b -> Const a b #

negate :: Const a b -> Const a b #

abs :: Const a b -> Const a b #

signum :: Const a b -> Const a b #

fromInteger :: Integer -> Const a b #

Ord a => Ord (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

compare :: Const a b -> Const a b -> Ordering #

(<) :: Const a b -> Const a b -> Bool #

(<=) :: Const a b -> Const a b -> Bool #

(>) :: Const a b -> Const a b -> Bool #

(>=) :: Const a b -> Const a b -> Bool #

max :: Const a b -> Const a b -> Const a b #

min :: Const a b -> Const a b -> Const a b #

Read a => Read (Const a b)

This instance would be equivalent to the derived instances of the Const newtype if the runConst field were removed

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Const

Real a => Real (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

toRational :: Const a b -> Rational #

RealFloat a => RealFloat (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

floatRadix :: Const a b -> Integer #

floatDigits :: Const a b -> Int #

floatRange :: Const a b -> (Int, Int) #

decodeFloat :: Const a b -> (Integer, Int) #

encodeFloat :: Integer -> Int -> Const a b #

exponent :: Const a b -> Int #

significand :: Const a b -> Const a b #

scaleFloat :: Int -> Const a b -> Const a b #

isNaN :: Const a b -> Bool #

isInfinite :: Const a b -> Bool #

isDenormalized :: Const a b -> Bool #

isNegativeZero :: Const a b -> Bool #

isIEEE :: Const a b -> Bool #

atan2 :: Const a b -> Const a b -> Const a b #

RealFrac a => RealFrac (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

properFraction :: Integral b0 => Const a b -> (b0, Const a b) #

truncate :: Integral b0 => Const a b -> b0 #

round :: Integral b0 => Const a b -> b0 #

ceiling :: Integral b0 => Const a b -> b0 #

floor :: Integral b0 => Const a b -> b0 #

Show a => Show (Const a b)

This instance would be equivalent to the derived instances of the Const newtype if the runConst field were removed

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Const

Methods

showsPrec :: Int -> Const a b -> ShowS #

show :: Const a b -> String #

showList :: [Const a b] -> ShowS #

Ix a => Ix (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

range :: (Const a b, Const a b) -> [Const a b] #

index :: (Const a b, Const a b) -> Const a b -> Int #

unsafeIndex :: (Const a b, Const a b) -> Const a b -> Int

inRange :: (Const a b, Const a b) -> Const a b -> Bool #

rangeSize :: (Const a b, Const a b) -> Int #

unsafeRangeSize :: (Const a b, Const a b) -> Int

IsString a => IsString (Const a b)

Since: base-4.9.0.0

Instance details

Defined in Data.String

Methods

fromString :: String -> Const a b #

Generic (Const a b) 
Instance details

Defined in Data.Functor.Const

Associated Types

type Rep (Const a b) :: * -> * #

Methods

from :: Const a b -> Rep (Const a b) x #

to :: Rep (Const a b) x -> Const a b #

Semigroup a => Semigroup (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

(<>) :: Const a b -> Const a b -> Const a b #

sconcat :: NonEmpty (Const a b) -> Const a b #

stimes :: Integral b0 => b0 -> Const a b -> Const a b #

Monoid a => Monoid (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

mempty :: Const a b #

mappend :: Const a b -> Const a b -> Const a b #

mconcat :: [Const a b] -> Const a b #

Wrapped (Const a x) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Const a x) :: * #

Methods

_Wrapped' :: Iso' (Const a x) (Unwrapped (Const a x)) #

NFData a => NFData (Const a b)

Since: deepseq-1.4.0.0

Instance details

Defined in Control.DeepSeq

Methods

rnf :: Const a b -> () #

Storable a => Storable (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

sizeOf :: Const a b -> Int #

alignment :: Const a b -> Int #

peekElemOff :: Ptr (Const a b) -> Int -> IO (Const a b) #

pokeElemOff :: Ptr (Const a b) -> Int -> Const a b -> IO () #

peekByteOff :: Ptr b0 -> Int -> IO (Const a b) #

pokeByteOff :: Ptr b0 -> Int -> Const a b -> IO () #

peek :: Ptr (Const a b) -> IO (Const a b) #

poke :: Ptr (Const a b) -> Const a b -> IO () #

Bits a => Bits (Const a b) 
Instance details

Defined in Data.Functor.Const

Methods

(.&.) :: Const a b -> Const a b -> Const a b #

(.|.) :: Const a b -> Const a b -> Const a b #

xor :: Const a b -> Const a b -> Const a b #

complement :: Const a b -> Const a b #

shift :: Const a b -> Int -> Const a b #

rotate :: Const a b -> Int -> Const a b #

zeroBits :: Const a b #

bit :: Int -> Const a b #

setBit :: Const a b -> Int -> Const a b #

clearBit :: Const a b -> Int -> Const a b #

complementBit :: Const a b -> Int -> Const a b #

testBit :: Const a b -> Int -> Bool #

bitSizeMaybe :: Const a b -> Maybe Int #

bitSize :: Const a b -> Int #

isSigned :: Const a b -> Bool #

shiftL :: Const a b -> Int -> Const a b #

unsafeShiftL :: Const a b -> Int -> Const a b #

shiftR :: Const a b -> Int -> Const a b #

unsafeShiftR :: Const a b -> Int -> Const a b #

rotateL :: Const a b -> Int -> Const a b #

rotateR :: Const a b -> Int -> Const a b #

popCount :: Const a b -> Int #

FiniteBits a => FiniteBits (Const a b) 
Instance details

Defined in Data.Functor.Const

Hashable a => Hashable (Const a b) 
Instance details

Defined in Data.Hashable.Class

Methods

hashWithSalt :: Int -> Const a b -> Int

hash :: Const a b -> Int

t ~ Const a' x' => Rewrapped (Const a x) t 
Instance details

Defined in Control.Lens.Wrapped

type Rep1 (Const a :: k -> *) 
Instance details

Defined in Data.Functor.Const

type Rep1 (Const a :: k -> *) = D1 (MetaData "Const" "Data.Functor.Const" "base" True) (C1 (MetaCons "Const" PrefixI True) (S1 (MetaSel (Just "getConst") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)))
type Rep (Const a b) 
Instance details

Defined in Data.Functor.Const

type Rep (Const a b) = D1 (MetaData "Const" "Data.Functor.Const" "base" True) (C1 (MetaCons "Const" PrefixI True) (S1 (MetaSel (Just "getConst") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)))
type Unwrapped (Const a x) 
Instance details

Defined in Control.Lens.Wrapped

type Unwrapped (Const a x) = a

newtype Identity a #

Identity functor and monad. (a non-strict monad)

Since: base-4.8.0.0

Constructors

Identity 

Fields

Instances
Monad Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Methods

(>>=) :: Identity a -> (a -> Identity b) -> Identity b #

(>>) :: Identity a -> Identity b -> Identity b #

return :: a -> Identity a #

fail :: String -> Identity a #

Functor Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Methods

fmap :: (a -> b) -> Identity a -> Identity b #

(<$) :: a -> Identity b -> Identity a #

MonadFix Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Methods

mfix :: (a -> Identity a) -> Identity a #

Applicative Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Methods

pure :: a -> Identity a #

(<*>) :: Identity (a -> b) -> Identity a -> Identity b #

liftA2 :: (a -> b -> c) -> Identity a -> Identity b -> Identity c #

(*>) :: Identity a -> Identity b -> Identity b #

(<*) :: Identity a -> Identity b -> Identity a #

Foldable Identity

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Methods

fold :: Monoid m => Identity m -> m #

foldMap :: Monoid m => (a -> m) -> Identity a -> m #

foldr :: (a -> b -> b) -> b -> Identity a -> b #

foldr' :: (a -> b -> b) -> b -> Identity a -> b #

foldl :: (b -> a -> b) -> b -> Identity a -> b #

foldl' :: (b -> a -> b) -> b -> Identity a -> b #

foldr1 :: (a -> a -> a) -> Identity a -> a #

foldl1 :: (a -> a -> a) -> Identity a -> a #

toList :: Identity a -> [a] #

null :: Identity a -> Bool #

length :: Identity a -> Int #

elem :: Eq a => a -> Identity a -> Bool #

maximum :: Ord a => Identity a -> a #

minimum :: Ord a => Identity a -> a #

sum :: Num a => Identity a -> a #

product :: Num a => Identity a -> a #

Traversable Identity 
Instance details

Defined in Data.Traversable

Methods

traverse :: Applicative f => (a -> f b) -> Identity a -> f (Identity b) #

sequenceA :: Applicative f => Identity (f a) -> f (Identity a) #

mapM :: Monad m => (a -> m b) -> Identity a -> m (Identity b) #

sequence :: Monad m => Identity (m a) -> m (Identity a) #

Traversable1 Identity 
Instance details

Defined in Data.Semigroup.Traversable.Class

Methods

traverse1 :: Apply f => (a -> f b) -> Identity a -> f (Identity b) #

sequence1 :: Apply f => Identity (f b) -> f (Identity b)

Settable Identity 
Instance details

Defined in Control.Lens.Internal.Setter

Methods

untainted :: Identity a -> a

untaintedDot :: Profunctor p => p a (Identity b) -> p a b

taintedDot :: Profunctor p => p a b -> p a (Identity b)

Eq1 Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftEq :: (a -> b -> Bool) -> Identity a -> Identity b -> Bool #

Ord1 Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftCompare :: (a -> b -> Ordering) -> Identity a -> Identity b -> Ordering #

Read1 Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftReadsPrec :: (Int -> ReadS a) -> ReadS [a] -> Int -> ReadS (Identity a) #

liftReadList :: (Int -> ReadS a) -> ReadS [a] -> ReadS [Identity a] #

liftReadPrec :: ReadPrec a -> ReadPrec [a] -> ReadPrec (Identity a) #

liftReadListPrec :: ReadPrec a -> ReadPrec [a] -> ReadPrec [Identity a] #

Show1 Identity

Since: base-4.9.0.0

Instance details

Defined in Data.Functor.Classes

Methods

liftShowsPrec :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> Int -> Identity a -> ShowS #

liftShowList :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> [Identity a] -> ShowS #

NFData1 Identity

Since: deepseq-1.4.3.0

Instance details

Defined in Control.DeepSeq

Methods

liftRnf :: (a -> ()) -> Identity a -> () #

R1 Identity 
Instance details

Defined in Linear.V1

Methods

_x :: Functor f => (a -> f a) -> Identity a -> f (Identity a)

Hashable1 Identity 
Instance details

Defined in Data.Hashable.Class

Methods

liftHashWithSalt :: (Int -> a -> Int) -> Int -> Identity a -> Int

Apply Identity 
Instance details

Defined in Data.Functor.Bind.Class

Methods

(<.>) :: Identity (a -> b) -> Identity a -> Identity b

(.>) :: Identity a -> Identity b -> Identity b

(<.) :: Identity a -> Identity b -> Identity a

liftF2 :: (a -> b -> c) -> Identity a -> Identity b -> Identity c

Bind Identity 
Instance details

Defined in Data.Functor.Bind.Class

Methods

(>>-) :: Identity a -> (a -> Identity b) -> Identity b

join :: Identity (Identity a) -> Identity a

Additive Identity 
Instance details

Defined in Linear.Vector

Methods

zero :: Num a => Identity a

(^+^) :: Num a => Identity a -> Identity a -> Identity a

(^-^) :: Num a => Identity a -> Identity a -> Identity a

lerp :: Num a => a -> Identity a -> Identity a -> Identity a

liftU2 :: (a -> a -> a) -> Identity a -> Identity a -> Identity a

liftI2 :: (a -> b -> c) -> Identity a -> Identity b -> Identity c

Representable Identity 
Instance details

Defined in Data.Functor.Rep

Associated Types

type Rep Identity :: *

Methods

tabulate :: (Rep Identity -> a) -> Identity a

index :: Identity a -> Rep Identity -> a

Metric Identity 
Instance details

Defined in Linear.Metric

Methods

dot :: Num a => Identity a -> Identity a -> a

quadrance :: Num a => Identity a -> a

qd :: Num a => Identity a -> Identity a -> a

distance :: Floating a => Identity a -> Identity a -> a

norm :: Floating a => Identity a -> a

signorm :: Floating a => Identity a -> Identity a

Affine Identity 
Instance details

Defined in Linear.Affine

Associated Types

type Diff Identity :: * -> *

Methods

(.-.) :: Num a => Identity a -> Identity a -> Diff Identity a

(.+^) :: Num a => Identity a -> Diff Identity a -> Identity a

(.-^) :: Num a => Identity a -> Diff Identity a -> Identity a

TraversableWithIndex () Identity 
Instance details

Defined in Control.Lens.Indexed

Methods

itraverse :: Applicative f => (() -> a -> f b) -> Identity a -> f (Identity b) #

itraversed :: (Indexable () p, Applicative f) => p a (f b) -> Identity a -> f (Identity b) #

FunctorWithIndex () Identity 
Instance details

Defined in Control.Lens.Indexed

Methods

imap :: (() -> a -> b) -> Identity a -> Identity b #

imapped :: (Indexable () p, Settable f) => p a (f b) -> Identity a -> f (Identity b) #

FoldableWithIndex () Identity 
Instance details

Defined in Control.Lens.Indexed

Methods

ifoldMap :: Monoid m => (() -> a -> m) -> Identity a -> m #

ifolded :: (Indexable () p, Contravariant f, Applicative f) => p a (f a) -> Identity a -> f (Identity a) #

ifoldr :: (() -> a -> b -> b) -> b -> Identity a -> b #

ifoldl :: (() -> b -> a -> b) -> b -> Identity a -> b #

ifoldr' :: (() -> a -> b -> b) -> b -> Identity a -> b #

ifoldl' :: (() -> b -> a -> b) -> b -> Identity a -> b #

MonadBaseControl Identity Identity 
Instance details

Defined in Control.Monad.Trans.Control

Associated Types

type StM Identity a :: *

Methods

liftBaseWith :: (RunInBase Identity Identity -> Identity a) -> Identity a

restoreM :: StM Identity a -> Identity a

Cosieve ReifiedGetter Identity 
Instance details

Defined in Control.Lens.Reified

Methods

cosieve :: ReifiedGetter a b -> Identity a -> b

Sieve ReifiedGetter Identity 
Instance details

Defined in Control.Lens.Reified

Methods

sieve :: ReifiedGetter a b -> a -> Identity b

Bounded a => Bounded (Identity a) 
Instance details

Defined in Data.Functor.Identity

Enum a => Enum (Identity a) 
Instance details

Defined in Data.Functor.Identity

Eq a => Eq (Identity a) 
Instance details

Defined in Data.Functor.Identity

Methods

(==) :: Identity a -> Identity a -> Bool #

(/=) :: Identity a -> Identity a -> Bool #

Floating a => Floating (Identity a) 
Instance details

Defined in Data.Functor.Identity

Fractional a => Fractional (Identity a) 
Instance details

Defined in Data.Functor.Identity

Integral a => Integral (Identity a) 
Instance details

Defined in Data.Functor.Identity

Num a => Num (Identity a) 
Instance details

Defined in Data.Functor.Identity

Ord a => Ord (Identity a) 
Instance details

Defined in Data.Functor.Identity

Methods

compare :: Identity a -> Identity a -> Ordering #

(<) :: Identity a -> Identity a -> Bool #

(<=) :: Identity a -> Identity a -> Bool #

(>) :: Identity a -> Identity a -> Bool #

(>=) :: Identity a -> Identity a -> Bool #

max :: Identity a -> Identity a -> Identity a #

min :: Identity a -> Identity a -> Identity a #

Read a => Read (Identity a)

This instance would be equivalent to the derived instances of the Identity newtype if the runIdentity field were removed

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Real a => Real (Identity a) 
Instance details

Defined in Data.Functor.Identity

Methods

toRational :: Identity a -> Rational #

RealFloat a => RealFloat (Identity a) 
Instance details

Defined in Data.Functor.Identity

RealFrac a => RealFrac (Identity a) 
Instance details

Defined in Data.Functor.Identity

Methods

properFraction :: Integral b => Identity a -> (b, Identity a) #

truncate :: Integral b => Identity a -> b #

round :: Integral b => Identity a -> b #

ceiling :: Integral b => Identity a -> b #

floor :: Integral b => Identity a -> b #

Show a => Show (Identity a)

This instance would be equivalent to the derived instances of the Identity newtype if the runIdentity field were removed

Since: base-4.8.0.0

Instance details

Defined in Data.Functor.Identity

Methods

showsPrec :: Int -> Identity a -> ShowS #

show :: Identity a -> String #

showList :: [Identity a] -> ShowS #

Ix a => Ix (Identity a) 
Instance details

Defined in Data.Functor.Identity

IsString a => IsString (Identity a) 
Instance details

Defined in Data.String

Methods

fromString :: String -> Identity a #

Generic (Identity a) 
Instance details

Defined in Data.Functor.Identity

Associated Types

type Rep (Identity a) :: * -> * #

Methods

from :: Identity a -> Rep (Identity a) x #

to :: Rep (Identity a) x -> Identity a #

Semigroup a => Semigroup (Identity a) 
Instance details

Defined in Data.Functor.Identity

Methods

(<>) :: Identity a -> Identity a -> Identity a #

sconcat :: NonEmpty (Identity a) -> Identity a #

stimes :: Integral b => b -> Identity a -> Identity a #

Monoid a => Monoid (Identity a) 
Instance details

Defined in Data.Functor.Identity

Methods

mempty :: Identity a #

mappend :: Identity a -> Identity a -> Identity a #

mconcat :: [Identity a] -> Identity a #

Wrapped (Identity a) 
Instance details

Defined in Control.Lens.Wrapped

Associated Types

type Unwrapped (Identity a) :: * #

Ixed (Identity a) 
Instance details

Defined in Control.Lens.At

Methods

ix :: Index (Identity a) -> Traversal' (Identity a) (IxValue (Identity a)) #

NFData a => NFData (Identity a)

Since: deepseq-1.4.0.0

Instance details

Defined in Control.DeepSeq

Methods

rnf :: Identity a -> () #

Storable a => Storable (Identity a) 
Instance details

Defined in Data.Functor.Identity

Methods

sizeOf :: Identity a -> Int #

alignment :: Identity a -> Int #

peekElemOff :: Ptr (Identity a) -> Int -> IO (Identity a) #

pokeElemOff :: Ptr (Identity a) -> Int -> Identity a -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Identity a) #

pokeByteOff :: Ptr b -> Int -> Identity a -> IO () #

peek :: Ptr (Identity a) -> IO (Identity a) #

poke :: Ptr (Identity a) -> Identity a -> IO () #

Bits a => Bits (Identity a) 
Instance details

Defined in Data.Functor.Identity

FiniteBits a => FiniteBits (Identity a) 
Instance details

Defined in Data.Functor.Identity

Hashable a => Hashable (Identity a) 
Instance details

Defined in Data.Hashable.Class

Methods

hashWithSalt :: Int -> Identity a -> Int

hash :: Identity a -> Int

Generic1 Identity 
Instance details

Defined in Data.Functor.Identity

Associated Types

type Rep1 Identity :: k -> * #

Methods

from1 :: Identity a -> Rep1 Identity a #

to1 :: Rep1 Identity a -> Identity a #

t ~ Identity b => Rewrapped (Identity a) t 
Instance details

Defined in Control.Lens.Wrapped

Field1 (Identity a) (Identity b) a b 
Instance details

Defined in Control.Lens.Tuple

Methods

_1 :: Lens (Identity a) (Identity b) a b #

Each (Identity a) (Identity b) a b 
Instance details

Defined in Control.Lens.Each

Methods

each :: Traversal (Identity a) (Identity b) a b #

(Default a, ToRenderable a) => ToRenderable (EC a b) 
Instance details

Defined in Graphics.Rendering.Chart.State

Methods

toRenderable :: EC a b -> Renderable () #

type Rep Identity 
Instance details

Defined in Data.Functor.Rep

type Rep Identity = ()
type Diff Identity 
Instance details

Defined in Linear.Affine

type Diff Identity = Identity
type StM Identity a 
Instance details

Defined in Control.Monad.Trans.Control

type StM Identity a = a
type Rep (Identity a) 
Instance details

Defined in Data.Functor.Identity

type Rep (Identity a) = D1 (MetaData "Identity" "Data.Functor.Identity" "base" True) (C1 (MetaCons "Identity" PrefixI True) (S1 (MetaSel (Just "runIdentity") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a)))
type Unwrapped (Identity a) 
Instance details

Defined in Control.Lens.Wrapped

type Unwrapped (Identity a) = a
type IxValue (Identity a) 
Instance details

Defined in Control.Lens.At

type IxValue (Identity a) = a
type Index (Identity a) 
Instance details

Defined in Control.Lens.At

type Index (Identity a) = ()
type Rep1 Identity 
Instance details

Defined in Data.Functor.Identity

type Rep1 Identity = D1 (MetaData "Identity" "Data.Functor.Identity" "base" True) (C1 (MetaCons "Identity" PrefixI True) (S1 (MetaSel (Just "runIdentity") NoSourceUnpackedness NoSourceStrictness DecidedLazy) Par1))

class Bifunctor (p :: * -> * -> *) where #

A bifunctor is a type constructor that takes two type arguments and is a functor in both arguments. That is, unlike with Functor, a type constructor such as Either does not need to be partially applied for a Bifunctor instance, and the methods in this class permit mapping functions over the Left value or the Right value, or both at the same time.

Formally, the class Bifunctor represents a bifunctor from Hask -> Hask.

Intuitively it is a bifunctor where both the first and second arguments are covariant.

You can define a Bifunctor by either defining bimap or by defining both first and second.

If you supply bimap, you should ensure that:

bimap id idid

If you supply first and second, ensure:

first idid
second idid

If you supply both, you should also ensure:

bimap f g ≡ first f . second g

These ensure by parametricity:

bimap  (f . g) (h . i) ≡ bimap f h . bimap g i
first  (f . g) ≡ first  f . first  g
second (f . g) ≡ second f . second g

Since: base-4.8.0.0

Minimal complete definition

bimap | first, second

Methods

bimap :: (a -> b) -> (c -> d) -> p a c -> p b d #

Map over both arguments at the same time.

bimap f g ≡ first f . second g

Examples

Expand
>>> bimap toUpper (+1) ('j', 3)
('J',4)
>>> bimap toUpper (+1) (Left 'j')
Left 'J'
>>> bimap toUpper (+1) (Right 3)
Right 4
Instances
Bifunctor Either

Since: base-4.8.0.0

Instance details

Defined in Data.Bifunctor

Methods

bimap :: (a -> b) -> (c -> d) -> Either a c -> Either b d #

first :: (a -> b) -> Either a c -> Either b c #

second :: (b -> c) -> Either a b -> Either a c #

Bifunctor (,)

Since: base-4.8.0.0

Instance details

Defined in Data.Bifunctor

Methods

bimap :: (a -> b) -> (c -> d) -> (a, c) -> (b, d) #

first :: (a -> b) -> (a, c) -> (b, c) #

second :: (b -> c) -> (a, b) -> (a, c) #

Bifunctor Arg

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Methods

bimap :: (a -> b) -> (c -> d) -> Arg a c -> Arg b d #

first :: (a -> b) -> Arg a c -> Arg b c #

second :: (b -> c) -> Arg a b -> Arg a c #

Bifunctor ((,,) x1)

Since: base-4.8.0.0

Instance details

Defined in Data.Bifunctor

Methods

bimap :: (a -> b) -> (c -> d) -> (x1, a, c) -> (x1, b, d) #

first :: (a -> b) -> (x1, a, c) -> (x1, b, c) #

second :: (b -> c) -> (x1, a, b) -> (x1, a, c) #

Bifunctor (Const :: * -> * -> *)

Since: base-4.8.0.0

Instance details

Defined in Data.Bifunctor

Methods

bimap :: (a -> b) -> (c -> d) -> Const a c -> Const b d #

first :: (a -> b) -> Const a c -> Const b c #

second :: (b -> c) -> Const a b -> Const a c #

Bifunctor (Tagged :: * -> * -> *) 
Instance details

Defined in Data.Tagged

Methods

bimap :: (a -> b) -> (c -> d) -> Tagged a c -> Tagged b d #

first :: (a -> b) -> Tagged a c -> Tagged b c #

second :: (b -> c) -> Tagged a b -> Tagged a c #

Functor f => Bifunctor (AlongsideLeft f) 
Instance details

Defined in Control.Lens.Internal.Getter

Methods

bimap :: (a -> b) -> (c -> d) -> AlongsideLeft f a c -> AlongsideLeft f b d #

first :: (a -> b) -> AlongsideLeft f a c -> AlongsideLeft f b c #

second :: (b -> c) -> AlongsideLeft f a b -> AlongsideLeft f a c #

Functor f => Bifunctor (AlongsideRight f) 
Instance details

Defined in Control.Lens.Internal.Getter

Methods

bimap :: (a -> b) -> (c -> d) -> AlongsideRight f a c -> AlongsideRight f b d #

first :: (a -> b) -> AlongsideRight f a c -> AlongsideRight f b c #

second :: (b -> c) -> AlongsideRight f a b -> AlongsideRight f a c #

Bifunctor (K1 i :: * -> * -> *)

Since: base-4.9.0.0

Instance details

Defined in Data.Bifunctor

Methods

bimap :: (a -> b) -> (c -> d) -> K1 i a c -> K1 i b d #

first :: (a -> b) -> K1 i a c -> K1 i b c #

second :: (b -> c) -> K1 i a b -> K1 i a c #

Bifunctor ((,,,) x1 x2)

Since: base-4.8.0.0

Instance details

Defined in Data.Bifunctor

Methods

bimap :: (a -> b) -> (c -> d) -> (x1, x2, a, c) -> (x1, x2, b, d) #

first :: (a -> b) -> (x1, x2, a, c) -> (x1, x2, b, c) #

second :: (b -> c) -> (x1, x2, a, b) -> (x1, x2, a, c) #

Bifunctor ((,,,,) x1 x2 x3)

Since: base-4.8.0.0

Instance details

Defined in Data.Bifunctor

Methods

bimap :: (a -> b) -> (c -> d) -> (x1, x2, x3, a, c) -> (x1, x2, x3, b, d) #

first :: (a -> b) -> (x1, x2, x3, a, c) -> (x1, x2, x3, b, c) #

second :: (b -> c) -> (x1, x2, x3, a, b) -> (x1, x2, x3, a, c) #

Functor f => Bifunctor (Clown f :: * -> * -> *) 
Instance details

Defined in Data.Bifunctor.Clown

Methods

bimap :: (a -> b) -> (c -> d) -> Clown f a c -> Clown f b d #

first :: (a -> b) -> Clown f a c -> Clown f b c #

second :: (b -> c) -> Clown f a b -> Clown f a c #

Bifunctor p => Bifunctor (Flip p) 
Instance details

Defined in Data.Bifunctor.Flip

Methods

bimap :: (a -> b) -> (c -> d) -> Flip p a c -> Flip p b d #

first :: (a -> b) -> Flip p a c -> Flip p b c #

second :: (b -> c) -> Flip p a b -> Flip p a c #

Functor g => Bifunctor (Joker g :: * -> * -> *) 
Instance details

Defined in Data.Bifunctor.Joker

Methods

bimap :: (a -> b) -> (c -> d) -> Joker g a c -> Joker g b d #

first :: (a -> b) -> Joker g a c -> Joker g b c #

second :: (b -> c) -> Joker g a b -> Joker g a c #

Bifunctor p => Bifunctor (WrappedBifunctor p) 
Instance details

Defined in Data.Bifunctor.Wrapped

Methods

bimap :: (a -> b) -> (c -> d) -> WrappedBifunctor p a c -> WrappedBifunctor p b d #

first :: (a -> b) -> WrappedBifunctor p a c -> WrappedBifunctor p b c #

second :: (b -> c) -> WrappedBifunctor p a b -> WrappedBifunctor p a c #

Bifunctor ((,,,,,) x1 x2 x3 x4)

Since: base-4.8.0.0

Instance details

Defined in Data.Bifunctor

Methods

bimap :: (a -> b) -> (c -> d) -> (x1, x2, x3, x4, a, c) -> (x1, x2, x3, x4, b, d) #

first :: (a -> b) -> (x1, x2, x3, x4, a, c) -> (x1, x2, x3, x4, b, c) #

second :: (b -> c) -> (x1, x2, x3, x4, a, b) -> (x1, x2, x3, x4, a, c) #

(Bifunctor f, Bifunctor g) => Bifunctor (Product f g) 
Instance details

Defined in Data.Bifunctor.Product

Methods

bimap :: (a -> b) -> (c -> d) -> Product f g a c -> Product f g b d #

first :: (a -> b) -> Product f g a c -> Product f g b c #

second :: (b -> c) -> Product f g a b -> Product f g a c #

Bifunctor ((,,,,,,) x1 x2 x3 x4 x5)

Since: base-4.8.0.0

Instance details

Defined in Data.Bifunctor

Methods

bimap :: (a -> b) -> (c -> d) -> (x1, x2, x3, x4, x5, a, c) -> (x1, x2, x3, x4, x5, b, d) #

first :: (a -> b) -> (x1, x2, x3, x4, x5, a, c) -> (x1, x2, x3, x4, x5, b, c) #

second :: (b -> c) -> (x1, x2, x3, x4, x5, a, b) -> (x1, x2, x3, x4, x5, a, c) #

(Functor f, Bifunctor p) => Bifunctor (Tannen f p) 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

bimap :: (a -> b) -> (c -> d) -> Tannen f p a c -> Tannen f p b d #

first :: (a -> b) -> Tannen f p a c -> Tannen f p b c #

second :: (b -> c) -> Tannen f p a b -> Tannen f p a c #

(Bifunctor p, Functor f, Functor g) => Bifunctor (Biff p f g) 
Instance details

Defined in Data.Bifunctor.Biff

Methods

bimap :: (a -> b) -> (c -> d) -> Biff p f g a c -> Biff p f g b d #

first :: (a -> b) -> Biff p f g a c -> Biff p f g b c #

second :: (b -> c) -> Biff p f g a b -> Biff p f g a c #

bars :: (PlotValue x, BarsPlotValue y) => [String] -> [(x, [y])] -> EC l (PlotBars x y) #

Construct a bar chart with the given titles and data, using the next available colors

points :: String -> [(x, y)] -> EC l (PlotPoints x y) #

Construct a scatter plot with the given title and data, using the next available color and point shape.

line :: String -> [[(x, y)]] -> EC l (PlotLines x y) #

Constuct a line plot with the given title and data, using the next available color.

setShapes :: [PointShape] -> EC l () #

Set the contents of the shape source, for subsequent plots

setColors :: [AlphaColour Double] -> EC l () #

Set the contents of the colour source, for subsequent plots

takeShape :: EC l PointShape #

Pop and return the next shape from the state

takeColor :: EC l (AlphaColour Double) #

Pop and return the next color from the state

plotRight :: ToPlot p => EC (LayoutLR x y1 y2) (p x y2) -> EC (LayoutLR x y1 y2) () #

Add a plot against the right axis tof the LayoutLR being constructed.

plotLeft :: ToPlot p => EC (LayoutLR x y1 y2) (p x y1) -> EC (LayoutLR x y1 y2) () #

Add a plot against the left axis to the LayoutLR being constructed.

plot :: ToPlot p => EC (Layout x y) (p x y) -> EC (Layout x y) () #

Add a plot to the Layout being constructed.

liftCState :: State CState a -> EC l a #

Lift a a computation over CState

liftEC :: Default l1 => EC l1 a -> EC l2 l1 #

Nest the construction of a graphical element within the construction of another.

execEC :: Default l => EC l a -> l #

Run the monadic EC computation, and return the graphical element (ie the outer monad' state)

type EC l a = StateT l (State CState) a #

We use nested State monads to give nice syntax. The outer state is the graphical element being constructed (typically a layout). The inner state contains any additional state reqired. This approach means that lenses and the state monad lens operators can be used directly on the value being constructed.

data CState #

The state held when monadically constructing a graphical element

Instances
Default CState 
Instance details

Defined in Graphics.Rendering.Chart.State

Methods

def :: CState #

(Default a, ToRenderable a) => ToRenderable (EC a b) 
Instance details

Defined in Graphics.Rendering.Chart.State

Methods

toRenderable :: EC a b -> Renderable () #

layoutlr_foreground :: Settable f => (AlphaColour Double -> f (AlphaColour Double)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

Setter to update the foreground color of core chart elements on a LayoutLR

layoutlr_all_font_styles :: Settable f => (FontStyle -> f FontStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

Setter to update all the font styles on a LayoutLR

layoutlr_axes_title_styles :: Settable f => (FontStyle -> f FontStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

Setter to update all the axes title styles on a LayoutLR

layoutlr_axes_styles :: Settable f => (AxisStyle -> f AxisStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

Setter to update all axis styles on a LayoutLR

layout_foreground :: Settable f => (AlphaColour Double -> f (AlphaColour Double)) -> Layout x y -> f (Layout x y) #

Setter to update the foreground color of core chart elements on a Layout

layout_all_font_styles :: Settable f => (FontStyle -> f FontStyle) -> Layout x y -> f (Layout x y) #

Setter to update all the font styles on a Layout

layout_axes_title_styles :: Settable f => (FontStyle -> f FontStyle) -> Layout x y -> f (Layout x y) #

Setter to update all the axes title styles on a Layout

layout_axes_styles :: Settable f => (AxisStyle -> f AxisStyle) -> Layout x y -> f (Layout x y) #

Setter to update all axis styles on a Layout

laxis_title :: Functor f => (String -> f String) -> LayoutAxis x -> f (LayoutAxis x) #

laxis_reverse :: Functor f => (Bool -> f Bool) -> LayoutAxis x -> f (LayoutAxis x) #

laxis_override :: Functor f => ((AxisData x -> AxisData x) -> f (AxisData x -> AxisData x)) -> LayoutAxis x -> f (LayoutAxis x) #

laxis_generate :: Functor f => (AxisFn x -> f (AxisFn x)) -> LayoutAxis x -> f (LayoutAxis x) #

layoutlr_x_axis :: Functor f => (LayoutAxis x -> f (LayoutAxis x)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

layoutlr_title_style :: Functor f => (FontStyle -> f FontStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

layoutlr_title :: Functor f => (String -> f String) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

layoutlr_right_axis :: Functor f => (LayoutAxis y2 -> f (LayoutAxis y2)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

layoutlr_plots :: Functor f => ([Either (Plot x y1) (Plot x y2)] -> f [Either (Plot x y1) (Plot x y2)]) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

layoutlr_plot_background :: Functor f => (Maybe FillStyle -> f (Maybe FillStyle)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

layoutlr_margin :: Functor f => (Double -> f Double) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

layoutlr_legend :: Functor f => (Maybe LegendStyle -> f (Maybe LegendStyle)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

layoutlr_left_axis :: Functor f => (LayoutAxis y1 -> f (LayoutAxis y1)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

layoutlr_grid_last :: Functor f => (Bool -> f Bool) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

layoutlr_background :: Functor f => (FillStyle -> f FillStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #

layout_y_axis :: Functor f => (LayoutAxis y -> f (LayoutAxis y)) -> Layout x y -> f (Layout x y) #

layout_x_axis :: Functor f => (LayoutAxis x -> f (LayoutAxis x)) -> Layout x y -> f (Layout x y) #

layout_title_style :: Functor f => (FontStyle -> f FontStyle) -> Layout x y -> f (Layout x y) #

layout_title :: Functor f => (String -> f String) -> Layout x y -> f (Layout x y) #

layout_plots :: Functor f => ([Plot x y] -> f [Plot x y]) -> Layout x y -> f (Layout x y) #

layout_margin :: Functor f => (Double -> f Double) -> Layout x y -> f (Layout x y) #

layout_grid_last :: Functor f => (Bool -> f Bool) -> Layout x y -> f (Layout x y) #

layout_background :: Functor f => (FillStyle -> f FillStyle) -> Layout x y -> f (Layout x y) #

renderStackedLayouts :: Ord x => StackedLayouts x -> Renderable () #

Render several layouts with the same x-axis type and range, vertically stacked so that their origins and x-values are aligned.

The legends from all the charts may be optionally combined, and shown once on the bottom chart. See StackedLayouts for further information.

layoutLRToGrid :: (Ord x, Ord yl, Ord yr) => LayoutLR x yl yr -> Grid (Renderable (LayoutPick x yl yr)) #

layoutLRToRenderable :: (Ord x, Ord yl, Ord yr) => LayoutLR x yl yr -> Renderable (LayoutPick x yl yr) #

Render the given LayoutLR.

layoutToGrid :: (Ord x, Ord y) => Layout x y -> Grid (Renderable (LayoutPick x y y)) #

layoutToRenderable :: (Ord x, Ord y) => Layout x y -> Renderable (LayoutPick x y y) #

Render the given Layout.

type MAxisFn t = [t] -> Maybe (AxisData t) #

A MAxisFn is a function that generates an (optional) axis given the points plotted against that axis.

data LayoutAxis x #

Type of axis that is used in Layout and LayoutLR.

To generate the actual axis type (AxisData and AxisT) the _laxis_generate function is called and custom settings are applied with _laxis_override. Note that the AxisVisibility values in Layout and LayoutLR override visibility related settings of the axis.

Constructors

LayoutAxis 

Fields

Instances
PlotValue t => Default (LayoutAxis t) 
Instance details

Defined in Graphics.Rendering.Chart.Layout

Methods

def :: LayoutAxis t #

data LayoutPick x y1 y2 #

Information on what is at a specifc location of a Layout or LayoutLR. This is delivered by the PickFn of a Renderable.

Constructors

LayoutPick_Legend String

A legend entry.

LayoutPick_Title String

The title.

LayoutPick_XTopAxisTitle String

The title of the top x axis.

LayoutPick_XBottomAxisTitle String

The title of the bottom x axis.

LayoutPick_YLeftAxisTitle String

The title of the left y axis.

LayoutPick_YRightAxisTitle String

The title of the right y axis.

LayoutPick_PlotArea x y1 y2

The plot area at the given plot coordinates.

LayoutPick_XTopAxis x

The top x axis at the given plot coordinate.

LayoutPick_XBottomAxis x

The bottom x axis at the given plot coordinate.

LayoutPick_YLeftAxis y1

The left y axis at the given plot coordinate.

LayoutPick_YRightAxis y2

The right y axis at the given plot coordinate.

Instances
(Show x, Show y1, Show y2) => Show (LayoutPick x y1 y2) 
Instance details

Defined in Graphics.Rendering.Chart.Layout

Methods

showsPrec :: Int -> LayoutPick x y1 y2 -> ShowS #

show :: LayoutPick x y1 y2 -> String #

showList :: [LayoutPick x y1 y2] -> ShowS #

data Layout x y #

A Layout value is a single plot area, with single x and y axis. The title is at the top and the legend at the bottom. It's parametrized by the types of values to be plotted on the x and y axes.

Constructors

Layout 

Fields

Instances
(PlotValue x, PlotValue y) => Default (Layout x y)

Empty Layout without title and plots. The background is white and the grid is drawn beneath all plots. There will be a legend. The top and right axis will not be visible.

Instance details

Defined in Graphics.Rendering.Chart.Layout

Methods

def :: Layout x y #

(Ord x, Ord y) => ToRenderable (Layout x y) 
Instance details

Defined in Graphics.Rendering.Chart.Layout

Methods

toRenderable :: Layout x y -> Renderable () #

data LayoutLR x y1 y2 #

A LayoutLR value is a single plot area, with an x axis and independent left and right y axes, with a title at the top; legend at the bottom. It's parametrized by the types of values to be plotted on the x and two y axes.

Constructors

LayoutLR 

Fields

Instances
(PlotValue x, PlotValue y1, PlotValue y2) => Default (LayoutLR x y1 y2)

Empty LayoutLR without title and plots. The background is white and the grid is drawn beneath all plots. There will be a legend. The top axis will not be visible.

Instance details

Defined in Graphics.Rendering.Chart.Layout

Methods

def :: LayoutLR x y1 y2 #

(Ord x, Ord yl, Ord yr) => ToRenderable (LayoutLR x yl yr) 
Instance details

Defined in Graphics.Rendering.Chart.Layout

Methods

toRenderable :: LayoutLR x yl yr -> Renderable () #

data StackedLayout x where #

A layout with its y type hidden, so that it can be stacked with other layouts with differing y axis, but the same x axis. See StackedLayouts.

Constructors

StackedLayout :: StackedLayout x

A Layout to stack.

StackedLayoutLR :: StackedLayout x

A LayoutLR to stack.

data StackedLayouts x #

A container for a set of vertically StackedLayouts. The x axis of the different layouts will be aligned.

Constructors

StackedLayouts 

Fields

Instances
Default (StackedLayouts x)

A empty StackedLayout with compressions applied.

Instance details

Defined in Graphics.Rendering.Chart.Layout

Methods

def :: StackedLayouts x #

Ord x => ToRenderable (StackedLayouts x) 
Instance details

Defined in Graphics.Rendering.Chart.Layout

plot_hist_values :: Functor f => ([x] -> f [x]) -> PlotHist x y -> f (PlotHist x y) #

plot_hist_title :: Functor f => (String -> f String) -> PlotHist x y -> f (PlotHist x y) #

plot_hist_range :: Functor f => (Maybe (x, x) -> f (Maybe (x, x))) -> PlotHist x y -> f (PlotHist x y) #

plot_hist_norm_func :: Functor f => ((Double -> Int -> y1) -> f (Double -> Int -> y2)) -> PlotHist x y1 -> f (PlotHist x y2) #

plot_hist_no_zeros :: Functor f => (Bool -> f Bool) -> PlotHist x y -> f (PlotHist x y) #

plot_hist_drop_lines :: Functor f => (Bool -> f Bool) -> PlotHist x y -> f (PlotHist x y) #

plot_hist_bins :: Functor f => (Int -> f Int) -> PlotHist x y -> f (PlotHist x y) #

histToPlot :: (RealFrac x, Num y, Ord y) => PlotHist x y -> Plot x y #

Convert a PlotHist to a Plot

N.B. In principle this should be Chart's ToPlot class but unfortunately this does not allow us to set bounds on the x and y axis types, hence the need for this function.

defaultNormedPlotHist :: PlotHist x Double #

defaultPlotHist but normalized such that the integral of the histogram is one.

defaultFloatPlotHist :: PlotHist x Double #

defaultPlotHist but with real counts

defaultPlotHist :: PlotHist x Int #

The default style is an unnormalized histogram of 20 bins.

data PlotHist x y #

Constructors

PlotHist 

Fields

Instances
Default (PlotHist x Int) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Histogram

Methods

def :: PlotHist x Int #

area_spots_4d_values :: Functor f => ([(x1, y1, z1, t1)] -> f [(x2, y2, z2, t2)]) -> AreaSpots4D z1 t1 x1 y1 -> f (AreaSpots4D z2 t2 x2 y2) #

area_spots_4d_title :: Functor f => (String -> f String) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y) #

area_spots_4d_palette :: Functor f => ([Colour Double] -> f [Colour Double]) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y) #

area_spots_4d_opacity :: Functor f => (Double -> f Double) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y) #

area_spots_4d_max_radius :: Functor f => (Double -> f Double) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y) #

area_spots_4d_linethick :: Functor f => (Double -> f Double) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y) #

area_spots_values :: Functor f => ([(x1, y1, z1)] -> f [(x2, y2, z2)]) -> AreaSpots z1 x1 y1 -> f (AreaSpots z2 x2 y2) #

area_spots_title :: Functor f => (String -> f String) -> AreaSpots z x y -> f (AreaSpots z x y) #

area_spots_opacity :: Functor f => (Double -> f Double) -> AreaSpots z x y -> f (AreaSpots z x y) #

area_spots_max_radius :: Functor f => (Double -> f Double) -> AreaSpots z x y -> f (AreaSpots z x y) #

area_spots_linethick :: Functor f => (Double -> f Double) -> AreaSpots z x y -> f (AreaSpots z x y) #

data AreaSpots z x y #

A collection of unconnected spots, with x,y position, and an independent z value to be represented by the area of the spot.

Instances
PlotValue z => ToPlot (AreaSpots z) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.AreaSpots

Methods

toPlot :: AreaSpots z x y -> Plot x y #

Default (AreaSpots z x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.AreaSpots

Methods

def :: AreaSpots z x y #

data AreaSpots4D z t x y #

A collection of unconnected spots, with x,y position, an independent z value to be represented by the area of the spot, and in addition, a fourth variable t to be represented by a colour from a given palette. (A linear transfer function from t to palette is assumed.)

Instances
(PlotValue z, PlotValue t, Show t) => ToPlot (AreaSpots4D z t) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.AreaSpots

Methods

toPlot :: AreaSpots4D z t x y -> Plot x y #

Default (AreaSpots4D z t x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.AreaSpots

Methods

def :: AreaSpots4D z t x y #

plot_bars_values :: Functor f => ([(x1, [y])] -> f [(x2, [y])]) -> PlotBars x1 y -> f (PlotBars x2 y) #

plot_bars_titles :: Functor f => ([String] -> f [String]) -> PlotBars x y -> f (PlotBars x y) #

plot_bars_reference :: Functor f => (y -> f y) -> PlotBars x y -> f (PlotBars x y) #

plotBars :: BarsPlotValue y => PlotBars x y -> Plot x y #

class PlotValue a => BarsPlotValue a where #

Minimal complete definition

barsReference, barsAdd

Methods

barsReference :: a #

barsAdd :: a -> a -> a #

Instances
BarsPlotValue Double 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Bars

BarsPlotValue Int 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Bars

Methods

barsReference :: Int #

barsAdd :: Int -> Int -> Int #

data PlotBarsStyle #

Constructors

BarsStacked

Bars for a fixed x are stacked vertically on top of each other.

BarsClustered

Bars for a fixed x are put horizontally beside each other.

data PlotBarsSpacing #

Constructors

BarsFixWidth Double

All bars have the same width in pixels.

BarsFixGap Double Double

(BarsFixGap g mw) means make the gaps between the bars equal to g, but with a minimum bar width of mw

data PlotBarsAlignment #

How bars for a given (x,[y]) are aligned with respect to screen coordinate corresponding to x (deviceX).

Constructors

BarsLeft

The left edge of bars is at deviceX

BarsCentered

Bars are centered around deviceX

BarsRight

The right edge of bars is at deviceX

data PlotBars x y #

Value describing how to plot a set of bars. Note that the input data is typed [(x,[y])], ie for each x value we plot several y values. Typically the size of each [y] list would be the same.

Constructors

PlotBars 

Fields

Instances
BarsPlotValue y => Default (PlotBars x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Bars

Methods

def :: PlotBars x y #

plot_vectors_values :: Functor f => ([((x, y), (x, y))] -> f [((x, y), (x, y))]) -> PlotVectors x y -> f (PlotVectors x y) #

plot_vectors_mapf :: Functor f => (((x, y) -> (x, y)) -> f ((x, y) -> (x, y))) -> PlotVectors x y -> f (PlotVectors x y) #

plot_vectors_grid :: Functor f => ([(x, y)] -> f [(x, y)]) -> PlotVectors x y -> f (PlotVectors x y) #

data PlotVectors x y #

Constructors

PlotVectors 

Fields

Instances
Default (PlotVectors x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Vectors

Methods

def :: PlotVectors x y #

loga_labelf :: (Profunctor p, Functor f) => p ([a1] -> [String]) (f ([a2] -> [String])) -> p (LogAxisParams a1) (f (LogAxisParams a2)) #

la_labelf :: Functor f => (([a1] -> [String]) -> f ([a2] -> [String])) -> LinearAxisParams a1 -> f (LinearAxisParams a2) #

autoScaledLogAxis :: RealFloat a => LogAxisParams a -> AxisFn a #

Generate a log axis automatically, scaled appropriate for the input data.

autoSteps :: Int -> [Double] -> [Double] #

Given a target number of values, and a list of input points, find evenly spaced values from the set {1*X, 2*X, 2.5*X, 5*X} (where X is some power of ten) that evenly cover the input points.

autoScaledAxis :: RealFloat a => LinearAxisParams a -> AxisFn a #

Generate a linear axis automatically, scaled appropriately for the input data.

scaledAxis :: RealFloat a => LinearAxisParams a -> (a, a) -> AxisFn a #

Generate a linear axis with the specified bounds

newtype Percent #

A wrapper class for doubles used to indicate they are to be plotted against a percentage axis.

Constructors

Percent 

Fields

Instances
Eq Percent 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Methods

(==) :: Percent -> Percent -> Bool #

(/=) :: Percent -> Percent -> Bool #

Floating Percent 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Fractional Percent 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Num Percent 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Ord Percent 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Real Percent 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

RealFloat Percent 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

RealFrac Percent 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Methods

properFraction :: Integral b => Percent -> (b, Percent) #

truncate :: Integral b => Percent -> b #

round :: Integral b => Percent -> b #

ceiling :: Integral b => Percent -> b #

floor :: Integral b => Percent -> b #

Show Percent 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

PlotValue Percent 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

newtype LogValue #

A wrapper class for doubles used to indicate they are to be plotted against a log axis.

Constructors

LogValue Double 
Instances
Eq LogValue 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Floating LogValue 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Fractional LogValue 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Num LogValue 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Ord LogValue 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Real LogValue 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

RealFloat LogValue 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

RealFrac LogValue 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Methods

properFraction :: Integral b => LogValue -> (b, LogValue) #

truncate :: Integral b => LogValue -> b #

round :: Integral b => LogValue -> b #

ceiling :: Integral b => LogValue -> b #

floor :: Integral b => LogValue -> b #

Show LogValue 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

PlotValue LogValue 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

data LinearAxisParams a #

Constructors

LinearAxisParams 

Fields

Instances
(Show a, RealFloat a) => Default (LinearAxisParams a) 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Methods

def :: LinearAxisParams a #

data LogAxisParams a #

Constructors

LogAxisParams 

Fields

Instances
(Show a, RealFloat a) => Default (LogAxisParams a) 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Floating

Methods

def :: LogAxisParams a #

autoIndexAxis :: Integral i => [String] -> [i] -> AxisData i #

Create an axis for values indexed by position. The list of strings are the labels to be used.

addIndexes :: [a] -> [(PlotIndex, a)] #

Augment a list of values with index numbers for plotting.

newtype PlotIndex #

Type for capturing values plotted by index number (ie position in a list) rather than a numerical value.

Constructors

PlotIndex 

Fields

Instances
Enum PlotIndex 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Eq PlotIndex 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Integral PlotIndex 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Num PlotIndex 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Ord PlotIndex 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Real PlotIndex 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

Show PlotIndex 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

PlotValue PlotIndex 
Instance details

Defined in Graphics.Rendering.Chart.Axis.Indexed

autoTimeValueAxis :: TimeValue t => AxisFn t #

Automatically choose a suitable time axis, based upon the time range of data. The values to be plotted against this axis can be created with doubleFromTimeValue.

years :: TimeSeq #

A TimeSeq for calendar years.

months :: TimeSeq #

A TimeSeq for calendar months.

days :: TimeSeq #

A TimeSeq for calendar days.

timeValueAxis #

Arguments

:: TimeValue t 
=> TimeSeq

Set the minor ticks, and the final range will be aligned to its elements.

-> TimeSeq

Set the labels and grid.

-> TimeLabelFn 
-> TimeLabelAlignment 
-> TimeSeq

Set the second line of labels.

-> TimeLabelFn

Format t for labels.

-> TimeLabelAlignment 
-> AxisFn t 

Create an AxisFn to for a time axis.

The values to be plotted against this axis can be created with doubleFromLocalTime.

Implementation detail: PlotValue constraint is needed to use vmap.

type TimeSeq = UTCTime -> ([UTCTime], [UTCTime]) #

TimeSeq is a (potentially infinite) set of times. When passed a reference time, the function returns a a pair of lists. The first contains all times in the set less than the reference time in decreasing order. The second contains all times in the set greater than or equal to the reference time, in increasing order.

type TimeLabelFn = UTCTime -> String #

How to display a time

axis_viewport :: Functor f => ((Range -> x -> Double) -> f (Range -> x -> Double)) -> AxisData x -> f (AxisData x) #

axis_tropweiv :: Functor f => ((Range -> Double -> x) -> f (Range -> Double -> x)) -> AxisData x -> f (AxisData x) #

axis_ticks :: Functor f => ([(x, Double)] -> f [(x, Double)]) -> AxisData x -> f (AxisData x) #

axis_labels :: Functor f => ([[(x, String)]] -> f [[(x, String)]]) -> AxisData x -> f (AxisData x) #

axis_grid :: Functor f => ([x] -> f [x]) -> AxisData x -> f (AxisData x) #

invLinMap :: (Double -> a) -> (a -> Double) -> (a, a) -> Range -> Double -> a #

An inverse linear mapping of points from one range to another.

linMap :: (a -> Double) -> (a, a) -> Range -> a -> Double #

A linear mapping of points in one range to another.

invmap :: PlotValue x => (x, x) -> Range -> Double -> x #

The inverse mapping from device co-ordinate range back to interesting values.

vmap :: PlotValue x => (x, x) -> Range -> x -> Double #

A linear mapping of points in one range to another.

defaultGridLineStyle :: LineStyle #

The default LineStyle of a plot area grid.

defaultAxisLineStyle :: LineStyle #

The default LineStyle of an axis.

makeAxis' :: Ord x => (x -> Double) -> (Double -> x) -> ([x] -> [String]) -> ([x], [x], [x]) -> AxisData x #

Construct an axis given the positions for ticks, grid lines, and labels, and the positioning and labelling functions

makeAxis :: PlotValue x => ([x] -> [String]) -> ([x], [x], [x]) -> AxisData x #

Construct an axis given the positions for ticks, grid lines, and labels, and the labelling function

axisOverhang :: Ord x => AxisT x -> BackendProgram (Double, Double) #

Calculate the amount by which the labels extend beyond the ends of the axis.

axisLabelsOverride :: [(x, String)] -> AxisData x -> AxisData x #

Modifier to change labels on an axis

axisGridAtLabels :: AxisData x -> AxisData x #

Modifier to position grid lines to line up with the labels

axisGridAtBigTicks :: AxisData x -> AxisData x #

Modifier to position grid lines to line up with only the major ticks

axisGridAtTicks :: AxisData x -> AxisData x #

Modifier to position grid lines to line up with the ticks

axisGridHide :: AxisData x -> AxisData x #

Modifier to remove grid lines from an axis

axisToRenderable :: AxisT x -> Renderable x #

Construct a renderable from an axis, in order that it can be composed with other renderables and drawn. This does not include the drawing of the grid, which must be done separately by the renderAxisGrid function.

class Ord a => PlotValue a where #

A typeclass abstracting the functions we need to be able to plot against an axis of type a

Minimal complete definition

toValue, fromValue, autoAxis

Methods

toValue :: a -> Double #

fromValue :: Double -> a #

autoAxis :: AxisFn a #

data AxisVisibility #

Configures whick visual elements of a axis are shown at the appropriate edge of a plot area.

Constructors

AxisVisibility 

Fields

Instances
Default AxisVisibility

By default all parts of a axis are visible.

Instance details

Defined in Graphics.Rendering.Chart.Axis.Types

Methods

def :: AxisVisibility #

data AxisData x #

The basic data associated with an axis showing values of type x.

Constructors

AxisData 

Fields

  • _axis_visibility :: AxisVisibility

    Which parts of the axis shall be displayed.

  • _axis_viewport :: Range -> x -> Double

    The _axis_viewport function maps values into device coordinates.

  • _axis_tropweiv :: Range -> Double -> x

    The _axis_tropweiv function maps device coordinates back to values.

  • _axis_ticks :: [(x, Double)]

    The tick marks on the axis as pairs. The first element is the position on the axis (in viewport units) and the second element is the length of the tick in output coordinates. The tick starts on the axis, and positive numbers are drawn towards the plot area.

  • _axis_labels :: [[(x, String)]]

    The labels on an axis as pairs. The first element of the pair is the position on the axis (in viewport units) and the second is the label text string. Note that multiple sets of labels can be specified, and are shown successively further away from the axis line.

  • _axis_grid :: [x]

    The positions on the axis (in viewport units) where we want to show grid lines.

_axis_line_style :: AxisStyle -> LineStyle #

LineStyle to use for axis line and ticks.

_axis_label_style :: AxisStyle -> FontStyle #

FontStyle to use for axis labels.

_axis_grid_style :: AxisStyle -> LineStyle #

LineStyle to use for axis grid.

_axis_label_gap :: AxisStyle -> Double #

How far the labels are to be drawn from the axis.

type AxisFn x = [x] -> AxisData x #

A function to generate the axis data, given the data values to be plotted against it.

data AxisT x #

Collect the information we need to render an axis. The bool is true if the axis direction is reversed.

data LegendOrientation #

Legends can be constructed in two orientations: in rows (where we specify the maximum number of columns), and in columns (where we specify the maximum number of rows)

Constructors

LORows Int 
LOCols Int 

data LegendPosition #

Defines the position of the legend, relative to the plot.

data PieItem #

Instances
Default PieItem 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Pie

Methods

def :: PieItem #

plot_annotation_values :: Functor f => ([(x1, y1, String)] -> f [(x2, y2, String)]) -> PlotAnnotation x1 y1 -> f (PlotAnnotation x2 y2) #

data PlotAnnotation x y #

Value for describing a series of text annotations to be placed at arbitrary points on the graph. Annotations can be rotated and styled.

Constructors

PlotAnnotation 

Fields

Instances
ToPlot PlotAnnotation 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Annotation

Methods

toPlot :: PlotAnnotation x y -> Plot x y #

Default (PlotAnnotation x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Annotation

Methods

def :: PlotAnnotation x y #

drawRectangle :: Point -> Rectangle -> BackendProgram (PickFn a) #

Draw the specified rectangle such that its top-left vertex is placed at the given position

rlabel :: FontStyle -> HTextAnchor -> VTextAnchor -> Double -> String -> Renderable String #

Construct a renderable from a text string, rotated wrt to axes. The angle of rotation is in degrees, measured clockwise from the horizontal.

label :: FontStyle -> HTextAnchor -> VTextAnchor -> String -> Renderable String #

Construct a renderable from a text string, aligned with the axes.

embedRenderable :: BackendProgram (Renderable a) -> Renderable a #

Helper function for using a renderable, when we generate it in the BackendProgram monad.

fillBackground :: FillStyle -> Renderable a -> Renderable a #

Overlay a renderable over a solid background fill.

addMargins #

Arguments

:: (Double, Double, Double, Double)

The spacing to be added.

-> Renderable a

The source renderable.

-> Renderable a 

Add some spacing at the edges of a renderable.

mapPickFn :: (a -> b) -> Renderable a -> Renderable b #

Map a function over result of a renderable's pickfunction.

mapMaybePickFn :: (a -> Maybe b) -> Renderable a -> Renderable b #

Map a function over the result of a renderable's pickfunction, keeping only Just results.

setPickFn :: PickFn b -> Renderable a -> Renderable b #

Replace the pick function of a renderable with another.

spacer1 :: Renderable a -> Renderable b #

Create a blank renderable with a minimum size the same as some other renderable.

spacer :: RectSize -> Renderable a #

Create a blank renderable with a specified minimum size.

type PickFn a = Point -> Maybe a #

A function that maps a point in device coordinates to some value.

Perhaps it might be generalised from Maybe a to (MonadPlus m ) => m a in the future.

data Renderable a #

A Renderable is a record of functions required to layout a graphic element.

Constructors

Renderable 

Fields

Instances
Functor Renderable 
Instance details

Defined in Graphics.Rendering.Chart.Renderable

Methods

fmap :: (a -> b) -> Renderable a -> Renderable b #

(<$) :: a -> Renderable b -> Renderable a #

ToRenderable (Renderable a) 
Instance details

Defined in Graphics.Rendering.Chart.Renderable

ToPNG (Renderable a) # 
Instance details

Defined in Language.Stochaskell.Plot

Methods

toPNG :: String -> Renderable a -> IO () #

class ToRenderable a where #

A type class abtracting the conversion of a value to a Renderable.

Minimal complete definition

toRenderable

Methods

toRenderable :: a -> Renderable () #

Instances
ToRenderable PieLayout 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Pie

ToRenderable PieChart 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Pie

ToRenderable Rectangle 
Instance details

Defined in Graphics.Rendering.Chart.Renderable

Ord x => ToRenderable (StackedLayouts x) 
Instance details

Defined in Graphics.Rendering.Chart.Layout

ToRenderable a => ToRenderable (Grid a) 
Instance details

Defined in Graphics.Rendering.Chart.Grid

Methods

toRenderable :: Grid a -> Renderable () #

ToRenderable (Renderable a) 
Instance details

Defined in Graphics.Rendering.Chart.Renderable

(Default a, ToRenderable a) => ToRenderable (EC a b) 
Instance details

Defined in Graphics.Rendering.Chart.State

Methods

toRenderable :: EC a b -> Renderable () #

(Ord x, Ord y) => ToRenderable (Layout x y) 
Instance details

Defined in Graphics.Rendering.Chart.Layout

Methods

toRenderable :: Layout x y -> Renderable () #

ToRenderable (Legend x y) 
Instance details

Defined in Graphics.Rendering.Chart.Legend

Methods

toRenderable :: Legend x y -> Renderable () #

(Ord x, Ord yl, Ord yr) => ToRenderable (LayoutLR x yl yr) 
Instance details

Defined in Graphics.Rendering.Chart.Layout

Methods

toRenderable :: LayoutLR x yl yr -> Renderable () #

plot_candle_width :: Functor f => (Double -> f Double) -> PlotCandle x y -> f (PlotCandle x y) #

plot_candle_values :: Functor f => ([Candle x1 y1] -> f [Candle x2 y2]) -> PlotCandle x1 y1 -> f (PlotCandle x2 y2) #

plot_candle_title :: Functor f => (String -> f String) -> PlotCandle x y -> f (PlotCandle x y) #

plot_candle_fill :: Functor f => (Bool -> f Bool) -> PlotCandle x y -> f (PlotCandle x y) #

plot_candle_centre :: Functor f => (Double -> f Double) -> PlotCandle x y -> f (PlotCandle x y) #

data PlotCandle x y #

Value defining a financial interval: opening and closing prices, with maxima and minima; and a style in which to render them. By convention, there are different fill styles depending on whether the price rises (open < close) or falls (close < open). (This plot type can also be re-purposed for statistical intervals, e.g. minimum, first quartile, median, third quartile, maximum.)

Instances
ToPlot PlotCandle 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Candle

Methods

toPlot :: PlotCandle x y -> Plot x y #

Default (PlotCandle x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Candle

Methods

def :: PlotCandle x y #

data Candle x y #

A Value holding price intervals for a given x-coord. An alternative view is that these are statistical intervals: the 0th, 25th, 50th, 75th, and 100th percentiles.

Constructors

Candle 

Fields

Instances
(Show x, Show y) => Show (Candle x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Candle

Methods

showsPrec :: Int -> Candle x y -> ShowS #

show :: Candle x y -> String #

showList :: [Candle x y] -> ShowS #

plot_errbars_values :: Functor f => ([ErrPoint x1 y1] -> f [ErrPoint x2 y2]) -> PlotErrBars x1 y1 -> f (PlotErrBars x2 y2) #

symErrPoint :: (Num a, Num b) => a -> b -> a -> b -> ErrPoint a b #

When the error is symmetric, we can simply pass in dx for the error.

data ErrValue x #

Value for holding a point with associated error bounds for each axis.

Constructors

ErrValue 

Fields

Instances
Show x => Show (ErrValue x) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.ErrBars

Methods

showsPrec :: Int -> ErrValue x -> ShowS #

show :: ErrValue x -> String #

showList :: [ErrValue x] -> ShowS #

data ErrPoint x y #

Constructors

ErrPoint 

Fields

Instances
(Show x, Show y) => Show (ErrPoint x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.ErrBars

Methods

showsPrec :: Int -> ErrPoint x y -> ShowS #

show :: ErrPoint x y -> String #

showList :: [ErrPoint x y] -> ShowS #

data PlotErrBars x y #

Value defining a series of error intervals, and a style in which to render them.

Instances
ToPlot PlotErrBars 
Instance details

Defined in Graphics.Rendering.Chart.Plot.ErrBars

Methods

toPlot :: PlotErrBars x y -> Plot x y #

Default (PlotErrBars x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.ErrBars

Methods

def :: PlotErrBars x y #

plot_fillbetween_values :: Functor f => ([(x1, (y1, y1))] -> f [(x2, (y2, y2))]) -> PlotFillBetween x1 y1 -> f (PlotFillBetween x2 y2) #

data PlotFillBetween x y #

Value specifying a plot filling the area between two sets of Y coordinates, given common X coordinates.

Instances
ToPlot PlotFillBetween 
Instance details

Defined in Graphics.Rendering.Chart.Plot.FillBetween

Methods

toPlot :: PlotFillBetween x y -> Plot x y #

Default (PlotFillBetween x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.FillBetween

Methods

def :: PlotFillBetween x y #

plot_hidden_y_values :: Functor f => ([y1] -> f [y2]) -> PlotHidden x y1 -> f (PlotHidden x y2) #

plot_hidden_x_values :: Functor f => ([x1] -> f [x2]) -> PlotHidden x1 y -> f (PlotHidden x2 y) #

data PlotHidden x y #

Value defining some hidden x and y values. The values are not displayed, but they still affect axis scaling.

Constructors

PlotHidden 
Instances
ToPlot PlotHidden 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Hidden

Methods

toPlot :: PlotHidden x y -> Plot x y #

plot_lines_values :: Functor f => ([[(x, y)]] -> f [[(x, y)]]) -> PlotLines x y -> f (PlotLines x y) #

plot_lines_title :: Functor f => (String -> f String) -> PlotLines x y -> f (PlotLines x y) #

plot_lines_limit_values :: Functor f => ([[(Limit x, Limit y)]] -> f [[(Limit x, Limit y)]]) -> PlotLines x y -> f (PlotLines x y) #

vlinePlot :: String -> LineStyle -> a -> Plot a b #

Helper function to plot a single vertical line.

hlinePlot :: String -> LineStyle -> b -> Plot a b #

Helper function to plot a single horizontal line.

data PlotLines x y #

Value defining a series of (possibly disjointed) lines, and a style in which to render them.

Constructors

PlotLines 

Fields

Instances
ToPlot PlotLines 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Lines

Methods

toPlot :: PlotLines x y -> Plot x y #

Default (PlotLines x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Lines

Methods

def :: PlotLines x y #

plot_points_values :: Functor f => ([(x1, y1)] -> f [(x2, y2)]) -> PlotPoints x1 y1 -> f (PlotPoints x2 y2) #

plot_points_title :: Functor f => (String -> f String) -> PlotPoints x y -> f (PlotPoints x y) #

data PlotPoints x y #

Value defining a series of datapoints, and a style in which to render them.

Instances
ToPlot PlotPoints 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Points

Methods

toPlot :: PlotPoints x y -> Plot x y #

Default (PlotPoints x y) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Points

Methods

def :: PlotPoints x y #

plot_render :: Functor f => ((PointMapFn x y -> BackendProgram ()) -> f (PointMapFn x y -> BackendProgram ())) -> Plot x y -> f (Plot x y) #

plot_legend :: Functor f => ([(String, Rect -> BackendProgram ())] -> f [(String, Rect -> BackendProgram ())]) -> Plot x y -> f (Plot x y) #

plot_all_points :: Functor f => (([x], [y]) -> f ([x], [y])) -> Plot x y -> f (Plot x y) #

mapXY :: PointMapFn x y -> (x, y) -> Point #

joinPlot :: Plot x y -> Plot x y -> Plot x y #

Join any two plots together (they will share a legend).

_plot_render :: Plot x y -> PointMapFn x y -> BackendProgram () #

Given the mapping between model space coordinates and device coordinates, render this plot into a chart.

_plot_legend :: Plot x y -> [(String, Rect -> BackendProgram ())] #

Details for how to show this plot in a legend. For each item the string is the text to show, and the function renders a graphical sample of the plot.

_plot_all_points :: Plot x y -> ([x], [y]) #

All of the model space coordinates to be plotted. These are used to autoscale the axes where necessary.

class ToPlot (a :: * -> * -> *) where #

A type class abstracting the conversion of a value to a Plot.

Minimal complete definition

toPlot

Methods

toPlot :: a x y -> Plot x y #

Instances
ToPlot PlotAnnotation 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Annotation

Methods

toPlot :: PlotAnnotation x y -> Plot x y #

ToPlot PlotCandle 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Candle

Methods

toPlot :: PlotCandle x y -> Plot x y #

ToPlot PlotErrBars 
Instance details

Defined in Graphics.Rendering.Chart.Plot.ErrBars

Methods

toPlot :: PlotErrBars x y -> Plot x y #

ToPlot PlotFillBetween 
Instance details

Defined in Graphics.Rendering.Chart.Plot.FillBetween

Methods

toPlot :: PlotFillBetween x y -> Plot x y #

ToPlot PlotHidden 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Hidden

Methods

toPlot :: PlotHidden x y -> Plot x y #

ToPlot PlotLines 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Lines

Methods

toPlot :: PlotLines x y -> Plot x y #

ToPlot PlotPoints 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Points

Methods

toPlot :: PlotPoints x y -> Plot x y #

ToPlot Plot 
Instance details

Defined in Graphics.Rendering.Chart.Plot.Types

Methods

toPlot :: Plot x y -> Plot x y #

PlotValue z => ToPlot (AreaSpots z) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.AreaSpots

Methods

toPlot :: AreaSpots z x y -> Plot x y #

(PlotValue z, PlotValue t, Show t) => ToPlot (AreaSpots4D z t) 
Instance details

Defined in Graphics.Rendering.Chart.Plot.AreaSpots

Methods

toPlot :: AreaSpots4D z t x y -> Plot x y #

solidFillStyle :: AlphaColour Double -> FillStyle #

Fill style that fill everything this the given colour.

arrows #

Arguments

:: Double

Radius of circle.

-> Double

Rotation (Tau)

-> Double

Thickness of line.

-> AlphaColour Double

Color of line.

-> PointStyle 

stars #

Arguments

:: Double

Radius of circle.

-> Double

Thickness of line.

-> AlphaColour Double

Color of line.

-> PointStyle 

Combination of plus and cross point style.

exes #

Arguments

:: Double

Radius of circle.

-> Double

Thickness of line.

-> AlphaColour Double

Color of line.

-> PointStyle 

Cross point style.

plusses #

Arguments

:: Double

Radius of tightest surrounding circle.

-> Double

Thickness of line.

-> AlphaColour Double

Color of line.

-> PointStyle 

Plus sign point style.

filledPolygon #

Arguments

:: Double

Radius of circle.

-> Int

Number of vertices.

-> Bool

Is right-side-up?

-> AlphaColour Double

Fill color.

-> PointStyle 

Style for filled polygon points.

hollowPolygon #

Arguments

:: Double

Radius of circle.

-> Double

Thickness of line.

-> Int

Number of vertices.

-> Bool

Is right-side-up?

-> AlphaColour Double

Colour of line.

-> PointStyle 

Style for stroked polygon points.

hollowCircles #

Arguments

:: Double

Radius of circle.

-> Double

Thickness of line.

-> AlphaColour Double 
-> PointStyle 

Style for stroked circle points.

filledCircles #

Arguments

:: Double

Radius of circle.

-> AlphaColour Double

Fill colour.

-> PointStyle 

Style for filled circle points.

dashedLine #

Arguments

:: Double

Width of line.

-> [Double]

The dash pattern in device coordinates.

-> AlphaColour Double

Colour of line.

-> LineStyle 

Create a dashed line style.

solidLine #

Arguments

:: Double

Width of line.

-> AlphaColour Double

Colour of line.

-> LineStyle 

Create a solid line style (not dashed).

defaultColorSeq :: [AlphaColour Double] #

The default sequence of colours to use when plotings different data sets in a graph.

drawPoint #

Arguments

:: PointStyle

Style to use when rendering the point.

-> Point

Position of the point to render.

-> BackendProgram () 

Draw a single point at the given location.

textDimension :: String -> BackendProgram RectSize #

Get the width and height of the string when rendered. See textSize.

textDrawRect :: HTextAnchor -> VTextAnchor -> Point -> String -> BackendProgram Rect #

Return the bounding rectangle for a text string positioned where it would be drawn by drawText. See textSize.

drawTextsR :: HTextAnchor -> VTextAnchor -> Double -> Point -> String -> BackendProgram () #

Draw a multi-line textual label anchored by one of its corners or edges, with rotation. Rotation angle is given in degrees, rotation is performed around anchor point. See drawText.

drawTextR :: HTextAnchor -> VTextAnchor -> Double -> Point -> String -> BackendProgram () #

Draw a textual label anchored by one of its corners or edges, with rotation. Rotation angle is given in degrees, rotation is performed around anchor point. See drawText.

drawTextA :: HTextAnchor -> VTextAnchor -> Point -> String -> BackendProgram () #

Draw a line of text that is aligned at a different anchor point. See drawText.

fillPointPath :: [Point] -> BackendProgram () #

Fill the region with the given corners.

strokePointPath :: [Point] -> BackendProgram () #

Draw lines between the specified points.

alignFillPoint :: Point -> BackendProgram Point #

Align the point using the environment's alignment function for coordinates. See getCoordAlignFn.

alignStrokePoint :: Point -> BackendProgram Point #

Align the point using the environment's alignment function for points. See getPointAlignFn.

alignFillPoints :: [Point] -> BackendProgram [Point] #

The points will be aligned by the getCoordAlignFn, so that when drawing bitmaps, the edges of the region will fall between pixels.

alignStrokePoints :: [Point] -> BackendProgram [Point] #

The points will be aligned by the getPointAlignFn, so that when drawing bitmaps, 1 pixel wide lines will be centred on the pixels.

alignFillPath :: Path -> BackendProgram Path #

Align the path using the environment's alignment function for coordinates. This is generally useful when filling. See alignPath and getCoordAlignFn.

alignStrokePath :: Path -> BackendProgram Path #

Align the path using the environment's alignment function for points. This is generally useful when stroking. See alignPath and getPointAlignFn.

alignPath :: (Point -> Point) -> Path -> Path #

Align the path by applying the given function on all points.

withPointStyle :: PointStyle -> BackendProgram a -> BackendProgram a #

Changes the LineStyle and FillStyle to comply with the given PointStyle.

withScaleY :: Double -> BackendProgram a -> BackendProgram a #

Apply a local scale on the y-axis.

withScaleX :: Double -> BackendProgram a -> BackendProgram a #

Apply a local scale on the x-axis.

withScale :: Vector -> BackendProgram a -> BackendProgram a #

Apply a local scale.

withTranslation :: Point -> BackendProgram a -> BackendProgram a #

Apply a local translation.

withRotation :: Double -> BackendProgram a -> BackendProgram a #

Apply a local rotation. The angle is given in radians.

data PointShape #

The different shapes a point can have.

Constructors

PointShapeCircle

A circle.

PointShapePolygon Int Bool

Number of vertices and is right-side-up?

PointShapePlus

A plus sign.

PointShapeCross

A cross.

PointShapeStar

Combination of a cross and a plus.

PointShapeArrowHead Double 
PointShapeEllipse Double Double

Ratio of minor to major axis and rotation

data PointStyle #

Abstract data type for the style of a plotted point.

Constructors

PointStyle 

Fields

Instances
Default PointStyle

Default style to use for points.

Instance details

Defined in Graphics.Rendering.Chart.Drawing

Methods

def :: PointStyle #

getCoordAlignFn :: BackendProgram (Point -> Point) #

Get the coordinate alignment function

getPointAlignFn :: BackendProgram (Point -> Point) #

Get the point alignment function

withClipRegion :: Rect -> BackendProgram a -> BackendProgram a #

Use the given clipping rectangle when drawing in this local environment. The new clipping region is intersected with the given clip region. You cannot escape the clip!

withLineStyle :: LineStyle -> BackendProgram a -> BackendProgram a #

Use the given line style in this local environment when stroking paths.

withFillStyle :: FillStyle -> BackendProgram a -> BackendProgram a #

Use the given fill style in this local environment when filling paths.

withFontStyle :: FontStyle -> BackendProgram a -> BackendProgram a #

Use the given font style in this local environment when drawing text.

An implementing backend is expected to guarentee to support the following font families: serif, sans-serif and monospace;

If the backend is not able to find or load a given font it is required to fall back to a custom fail-safe font and use it instead.

withTransform :: Matrix -> BackendProgram a -> BackendProgram a #

Apply the given transformation in this local environment when drawing. The given transformation is applied after the current transformation. This means both are combined.

drawText :: Point -> String -> BackendProgram () #

Draw a single-line textual label anchored by the baseline (vertical) left (horizontal) point. Uses the current FontStyle for drawing.

textSize :: String -> BackendProgram TextSize #

Calculate a TextSize object with rendering information about the given string without actually rendering it.

fillPath :: Path -> BackendProgram () #

Fill the given path using the current FillStyle. The given path will be closed prior to filling. This function does not perform alignment operations on the path. See Path for the exact semantic of paths.

strokePath :: Path -> BackendProgram () #

Stroke the outline of the given path using the current LineStyle. This function does not perform alignment operations on the path. See Path for the exact semantic of paths.

type BackendProgram a = Program ChartBackendInstr a #

A BackendProgram provides the capability to render a chart somewhere.

The coordinate system of the backend has its initial origin (0,0) in the top left corner of the drawing plane. The x-axis points towards the top right corner and the y-axis points towards the bottom left corner. The unit used by coordinates, the font size, and lengths is the always the same, but depends on the backend. All angles are measured in radians.

The line, fill and font style are set to their default values initially.

Information about the semantics of the instructions can be found in the documentation of ChartBackendInstr.

vectorAlignmentFns :: AlignmentFns #

Alignment to render on vector based graphics.

bitmapAlignmentFns :: AlignmentFns #

Alignment to render on raster based graphics.

data LineCap #

The different supported line ends.

Constructors

LineCapButt

Just cut the line straight.

LineCapRound

Make a rounded line end.

LineCapSquare

Make a square that ends the line.

data LineJoin #

The different supported ways to join line ends.

Constructors

LineJoinMiter

Extends the outline until they meet each other.

LineJoinRound

Draw a circle fragment to connet line end.

LineJoinBevel

Like miter, but cuts it off if a certain threshold is exceeded.

data LineStyle #

Data type for the style of a line.

Constructors

LineStyle 

Fields

Instances
Eq LineStyle 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Show LineStyle 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Default LineStyle

The default line style.

Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Methods

def :: LineStyle #

data FontSlant #

The possible slants of a font.

Constructors

FontSlantNormal

Normal font style without slant.

FontSlantItalic

With a slight slant.

FontSlantOblique

With a greater slant.

data FontWeight #

The possible weights of a font.

Constructors

FontWeightNormal

Normal font style without weight.

FontWeightBold

Bold font.

data FontStyle #

Data type for a font.

Constructors

FontStyle 

Fields

Instances
Eq FontStyle 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Show FontStyle 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Default FontStyle

The default font style.

Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Methods

def :: FontStyle #

data TextSize #

Text metrics returned by textSize.

Constructors

TextSize 

Fields

Instances
Eq TextSize 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Show TextSize 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

newtype FillStyle #

Abstract data type for a fill style.

The contained action sets the required fill style in the rendering state.

Instances
Eq FillStyle 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Show FillStyle 
Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Default FillStyle

The default fill style.

Instance details

Defined in Graphics.Rendering.Chart.Backend.Types

Methods

def :: FillStyle #

type AlignmentFn = Point -> Point #

A function to align points for a certain rendering device.

data AlignmentFns #

Holds the point and coordinate alignment function.

Constructors

AlignmentFns 

Fields

  • afPointAlignFn :: AlignmentFn

    An adjustment applied immediately prior to points being displayed in device coordinates.

    When device coordinates correspond to pixels, a cleaner image is created if this transform rounds to the nearest pixel. With higher-resolution output, this transform can just be the identity function.

    This is usually used to align prior to stroking.

  • afCoordAlignFn :: AlignmentFn

    The adjustment applied immediately prior to coordinates being transformed.

    This is usually used to align prior to filling.

invert :: Matrix -> Matrix #

Copied from Graphics.Rendering.Cairo.Matrix

adjoint :: Matrix -> Matrix #

Copied from Graphics.Rendering.Cairo.Matrix

scalarMultiply :: Double -> Matrix -> Matrix #

Copied from Graphics.Rendering.Cairo.Matrix

rotate :: Double -> Matrix -> Matrix #

Copied from Graphics.Rendering.Cairo.Matrix Rotations angle is given in radians.

scale :: Vector -> Matrix -> Matrix #

Copied and adopted from Graphics.Rendering.Cairo.Matrix

translate :: Vector -> Matrix -> Matrix #

Copied and adopted from Graphics.Rendering.Cairo.Matrix

identity :: Matrix #

Copied from Graphics.Rendering.Cairo.Matrix

translateP :: Vector -> Point -> Point #

Translate a point.

scaleP :: Vector -> Point -> Point #

Scale a point.

rotateP :: Double -> Point -> Point #

Rotate a point around the origin. The angle is given in radians.

transformP :: Matrix -> Point -> Point #

Transform a point using the given matrix.

makeLinesExplicit :: Path -> Path #

Enriches the path with explicit instructions to draw lines, that otherwise would be implicit. See Path for details about what lines in paths are implicit.

foldPath #

Arguments

:: Monoid m 
=> (Point -> m)

MoveTo

-> (Point -> m)

LineTo

-> (Point -> Double -> Double -> Double -> m)

Arc

-> (Point -> Double -> Double -> Double -> m)

ArcNeg

-> m

Close

-> Path

Path to fold

-> m 

Fold the given path to a monoid structure.

close :: Path #

A closed empty path. Closes a path when appended.

arcNeg' :: Double -> Double -> Double -> Double -> Double -> Path #

Short-cut for arcNeg, if you don't want to create a Point.

arcNeg :: Point -> Double -> Double -> Double -> Path #

Like arc, but draws from the stop angle to the start angle instead of between them.

arc' :: Double -> Double -> Double -> Double -> Double -> Path #

Short-cut for arc, if you don't want to create a Point.

arc #

Arguments

:: Point

Center point of the circle arc.

-> Double

Radius of the circle.

-> Double

Angle to start drawing at, in radians.

-> Double

Angle to stop drawing at, in radians.

-> Path 

Draw the arc of a circle. A straight line connects the end of the previous path with the beginning of the arc. The zero angle points in direction of the positive x-axis. Angles increase in clock-wise direction. If the stop angle is smaller then the start angle it is increased by multiples of 2 * pi until is is greater or equal.

lineTo' :: Double -> Double -> Path #

Short-cut for lineTo, if you don't want to create a Point.

lineTo :: Point -> Path #

Move the paths pointer to the given location and draw a straight line while doing so.

moveTo' :: Double -> Double -> Path #

Short-cut for moveTo, if you don't want to create a Point.

moveTo :: Point -> Path #

Move the paths pointer to the given location.

rectPath :: Rect -> Path #

Make a path from a rectangle.

intersectRect :: Limit Rect -> Limit Rect -> Limit Rect #

Intersects the rectangles. If they intersect the intersection rectangle is returned. LMin is the empty rectangle / intersection and LMax is the infinite plane.

within :: Point -> Rect -> Bool #

Test if a point is within a rectangle.

mkrect :: Point -> Point -> Point -> Point -> Rect #

Create a rectangle based upon the coordinates of 4 points.

psub :: Point -> Point -> Vector #

Subtract two points.

pvsub :: Point -> Vector -> Point #

Subtract a vector from a point.

pvadd :: Point -> Vector -> Point #

Add a point and a vector.

vscale :: Double -> Vector -> Vector #

Scale a vector by a constant.

vlen :: Vector -> Double #

Length/magnitude of a vector

vangle :: Vector -> Double #

Angle of a vector (counterclockwise from positive x-axis)

pointToVec :: Point -> Vector #

Convert a Point to a Vector.

data Point #

A point in two dimensions.

Constructors

Point 

Fields

Instances
Show Point 
Instance details

Defined in Graphics.Rendering.Chart.Geometry

Methods

showsPrec :: Int -> Point -> ShowS #

show :: Point -> String #

showList :: [Point] -> ShowS #

data Vector #

A vector in two dimensions.

Constructors

Vector 

Fields

Instances
Show Vector 
Instance details

Defined in Graphics.Rendering.Chart.Geometry

data Limit a #

Constructors

LMin 
LValue a 
LMax 
Instances
Show a => Show (Limit a) 
Instance details

Defined in Graphics.Rendering.Chart.Geometry

Methods

showsPrec :: Int -> Limit a -> ShowS #

show :: Limit a -> String #

showList :: [Limit a] -> ShowS #

type PointMapFn x y = (Limit x, Limit y) -> Point #

A function mapping between points.

data Rect #

A rectangle is defined by two points.

Constructors

Rect Point Point 
Instances
Show Rect 
Instance details

Defined in Graphics.Rendering.Chart.Geometry

Methods

showsPrec :: Int -> Rect -> ShowS #

show :: Rect -> String #

showList :: [Rect] -> ShowS #

data RectEdge #

Edge of a rectangle.

Constructors

E_Top 
E_Bottom 
E_Left 
E_Right 

type Range = (Double, Double) #

data Path #

The path type used by Charts.

A path can consist of several subpaths. Each is started by a MoveTo operation. All subpaths are open, except the last one, which may be closed using the Close operation. When filling a path all subpaths are closed implicitly.

Closing a subpath means that a line is drawn from the end point to the start point of the subpath.

If a Arc (or ArcNeg) is drawn a implicit line from the last end point of the subpath is drawn to the beginning of the arc. Another implicit line is drawn from the end of an arc to the beginning of the next path segment.

The beginning of a subpath is either (0,0) or set by a MoveTo instruction. If the first subpath is started with an arc the beginning of that subpath is the beginning of the arc.

Instances
Semigroup Path

Paths are monoids. After a path is closed you can not append anything to it anymore. The empty path is open. Use close to close a path.

Instance details

Defined in Graphics.Rendering.Chart.Geometry

Methods

(<>) :: Path -> Path -> Path #

sconcat :: NonEmpty Path -> Path #

stimes :: Integral b => b -> Path -> Path #

Monoid Path 
Instance details

Defined in Graphics.Rendering.Chart.Geometry

Methods

mempty :: Path #

mappend :: Path -> Path -> Path #

mconcat :: [Path] -> Path #

data Matrix #

Copied from Graphics.Rendering.Cairo.Matrix

Constructors

Matrix 

Fields

Instances
Num Matrix

Copied from Graphics.Rendering.Cairo.Matrix

Instance details

Defined in Graphics.Rendering.Chart.Geometry

Show Matrix 
Instance details

Defined in Graphics.Rendering.Chart.Geometry

class ColourOps (f :: * -> *) where #

Minimal complete definition

over, darken

Methods

darken :: Num a => a -> f a -> f a #

darken s c blends a colour with black without changing it's opacity.

For Colour, darken s c = blend s c mempty

Instances
ColourOps AlphaColour 
Instance details

Defined in Data.Colour.Internal

Methods

over :: Num a => AlphaColour a -> AlphaColour a -> AlphaColour a #

darken :: Num a => a -> AlphaColour a -> AlphaColour a #

ColourOps Colour 
Instance details

Defined in Data.Colour.Internal

Methods

over :: Num a => AlphaColour a -> Colour a -> Colour a #

darken :: Num a => a -> Colour a -> Colour a #

class AffineSpace (f :: * -> *) where #

Minimal complete definition

affineCombo

Methods

affineCombo :: Num a => [(a, f a)] -> f a -> f a #

Compute a affine Combination (weighted-average) of points. The last parameter will get the remaining weight. e.g.

affineCombo [(0.2,a), (0.3,b)] c == 0.2*a + 0.3*b + 0.5*c

Weights can be negative, or greater than 1.0; however, be aware that non-convex combinations may lead to out of gamut colours.

Instances
AffineSpace AlphaColour 
Instance details

Defined in Data.Colour.Internal

Methods

affineCombo :: Num a => [(a, AlphaColour a)] -> AlphaColour a -> AlphaColour a #

AffineSpace Colour 
Instance details

Defined in Data.Colour.Internal

Methods

affineCombo :: Num a => [(a, Colour a)] -> Colour a -> Colour a #

data AlphaColour a #

This type represents a Colour that may be semi-transparent.

The Monoid instance allows you to composite colours.

x `mappend` y == x `over` y

To get the (pre-multiplied) colour channel of an AlphaColour c, simply composite c over black.

c `over` black
Instances
ColourOps AlphaColour 
Instance details

Defined in Data.Colour.Internal

Methods

over :: Num a => AlphaColour a -> AlphaColour a -> AlphaColour a #

darken :: Num a => a -> AlphaColour a -> AlphaColour a #

AffineSpace AlphaColour 
Instance details

Defined in Data.Colour.Internal

Methods

affineCombo :: Num a => [(a, AlphaColour a)] -> AlphaColour a -> AlphaColour a #

Each ColourMap ColourMap (AlphaColour Double) (AlphaColour Double) 
Instance details

Defined in Plots.Style

Eq a => Eq (AlphaColour a) 
Instance details

Defined in Data.Colour.Internal

Num a => Semigroup (AlphaColour a)

AlphaColour forms a monoid with over and transparent.

Instance details

Defined in Data.Colour.Internal

Num a => Monoid (AlphaColour a) 
Instance details

Defined in Data.Colour.Internal

Parseable (AlphaColour Double) 
Instance details

Defined in Diagrams.Backend.CmdLine

Methods

parser :: Parser (AlphaColour Double)

data Colour a #

This type represents the human preception of colour. The a parameter is a numeric type used internally for the representation.

The Monoid instance allows one to add colours, but beware that adding colours can take you out of gamut. Consider using blend whenever possible.

Instances
ColourOps Colour 
Instance details

Defined in Data.Colour.Internal

Methods

over :: Num a => AlphaColour a -> Colour a -> Colour a #

darken :: Num a => a -> Colour a -> Colour a #

AffineSpace Colour 
Instance details

Defined in Data.Colour.Internal

Methods

affineCombo :: Num a => [(a, Colour a)] -> Colour a -> Colour a #

Eq a => Eq (Colour a) 
Instance details

Defined in Data.Colour.Internal

Methods

(==) :: Colour a -> Colour a -> Bool #

(/=) :: Colour a -> Colour a -> Bool #

Num a => Semigroup (Colour a) 
Instance details

Defined in Data.Colour.Internal

Methods

(<>) :: Colour a -> Colour a -> Colour a #

sconcat :: NonEmpty (Colour a) -> Colour a #

stimes :: Integral b => b -> Colour a -> Colour a #

Num a => Monoid (Colour a) 
Instance details

Defined in Data.Colour.Internal

Methods

mempty :: Colour a #

mappend :: Colour a -> Colour a -> Colour a #

mconcat :: [Colour a] -> Colour a #

Parseable (Colour Double) 
Instance details

Defined in Diagrams.Backend.CmdLine

Methods

parser :: Parser (Colour Double)

colourConvert :: (Fractional b, Real a) => Colour a -> Colour b #

Change the type used to represent the colour coordinates.

black :: Num a => Colour a #

transparent :: Num a => AlphaColour a #

This AlphaColour is entirely transparent and has no associated colour channel.

alphaColourConvert :: (Fractional b, Real a) => AlphaColour a -> AlphaColour b #

Change the type used to represent the colour coordinates.

opaque :: Num a => Colour a -> AlphaColour a #

Creates an opaque AlphaColour from a Colour.

dissolve :: Num a => a -> AlphaColour a -> AlphaColour a #

Returns an AlphaColour more transparent by a factor of o.

withOpacity :: Num a => Colour a -> a -> AlphaColour a #

Creates an AlphaColour from a Colour with a given opacity.

c `withOpacity` o == dissolve o (opaque c) 

blend :: (Num a, AffineSpace f) => a -> f a -> f a -> f a #

Compute the weighted average of two points. e.g.

blend 0.4 a b = 0.4*a + 0.6*b

The weight can be negative, or greater than 1.0; however, be aware that non-convex combinations may lead to out of gamut colours.

atop :: Fractional a => AlphaColour a -> AlphaColour a -> AlphaColour a #

c1 `atop` c2 returns the AlphaColour produced by covering the portion of c2 visible by c1. The resulting alpha channel is always the same as the alpha channel of c2.

c1 `atop` (opaque c2) == c1 `over` (opaque c2)
AlphaChannel (c1 `atop` c2) == AlphaChannel c2

alphaChannel :: AlphaColour a -> a #

Returns the opacity of an AlphaColour.

Plots

buildPlots :: BaseSpace c ~ v => Axis b c n -> [StyledPlot b v n] #

Build a list of styled plots from the axis, ready to be rendered. This takes into account any AxisStyle changes and applies the finalPlots modifications.

The StyledPlots can be rendered with renderStyledPlot and the legend entries can be obtained with styledPlotLegends. This is what renderAxis can uses internally but might be useful for debugging or generating your own legend.

r2AxisMain :: (Parseable (MainOpts (QDiagram b V2 Double Any)), Mainable (Axis b V2 Double)) => Axis b V2 Double -> IO () #

mainWith specialised to a 2D Axis.

class RenderAxis b (v :: * -> *) n where #

Renderable axes.

Minimal complete definition

renderAxis

Methods

renderAxis :: Axis b v n -> QDiagram b (BaseSpace v) n Any #

Render an axis to a diagram. The size of the diagram is determined by the axisSize.

Instances
(TypeableFloat n, Renderable (Path V2 n) b) => RenderAxis b V2 n

The RenderAxis class provides a default way to render an axis for each space.

Instance details

Defined in Plots.Axis.Render

Methods

renderAxis :: Axis b V2 n -> QDiagram b (BaseSpace V2) n Any #

(TypeableFloat n, Renderable (Path V2 n) b) => RenderAxis b Polar n 
Instance details

Defined in Plots.Axis.Render

Methods

renderAxis :: Axis b Polar n -> QDiagram b (BaseSpace Polar) n Any #

labelBars :: HasLabels a => [String] -> State a () #

Labels to use for each bar (or group of bars) along the axis.

onBars #

Arguments

:: (a -> State (PlotMods b V2 n) ())

Modifier the PlotOptions and PlotStyle for the bars associated with the data from a.

-> State (MultiBarState b n a) ()

Changes to each data set when executing multiBars.

Given the data for the bar, modify the properties for the bar that uses that data.

Some common functions to use on the PlotMods:

  • plotColour - change the colour of the bars
  • areaStyle - modify the style of the bars
  • key - add a legend entry for that group of bars

multiBars #

Arguments

:: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f, Foldable g) 
=> f a

data for multi plot

-> (a -> g n)

extract bar heights from each data set

-> State (MultiBarState b n a) ()

state to make changes to the plot

-> m ()

changes to the Axis

Construct multiple bars, grouped together. See MultiBarState for details on how to customise how the bars are drawn.

Example

Expand

import Plots
breakfastData :: [(String, V2 Double)]
breakfastData = [("eggs", V2 7 5), ("bacon", V2 5 4), ("sausage", V2 2 7), ("beans", V2 2 1)]
sortedData = [ ("girls", breakfastData^..each._2._x)
             , ("boys",  breakfastData^..each._2._y)
             ]
multiBarAxis :: Axis B V2 Double
multiBarAxis = r2Axis &~ do
  yMin ?= 0
  hide (xAxis . majorGridLines)
  hide minorTicks
  xLabel .= "breakfast item"
  multiBars sortedData snd $ do
    vertical .= True
    barWidth //= 2
    labelBars (map fst breakfastData)
    onBars $ \(nm,_) -> key nm

  -- show y values without decimal point
  yAxis . tickLabelFunction .= atMajorTicks (show . round)
  -- we should really force all major ticks to like on integers too
multiBarExample = renderAxis multiBarAxis

runningBars :: Num n => State (MultiBarState b n a) () #

Normal bars where each data set follows the last.

Example

Expand

stackedEqualBars :: Fractional n => n -> State (MultiBarState b n a) () #

Bars stacked on top of each other where every bar is the given height.

Example

Expand

stackedBars :: Num n => State (MultiBarState b n a) () #

Bars stacked on top of each other.

Example

Expand

groupedBars' :: Fractional n => n -> State (MultiBarState b n a) () #

Bars that are grouped together such that each group is a single barWidth. The parameter is the multiplier for the width of individual bars, where groupedBars 1 = groupedBars corresponds to bars in a group touching. reduce the width of individual bars.

Example

Expand

groupedBars :: Fractional n => State (MultiBarState b n a) () #

Bars that are grouped together such that each group is a single barWidth. The bars in a group are touching, see groupedBars' to reduce the width of individual bars.

Example

Expand

floatingBarPlot #

Arguments

:: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f) 
=> f (n, n)

bar limits

-> State (Plot (BarPlot n) b) ()

changes to the bars

-> m () 

Same as barPlot but with lower and upper bounds for the bars.

namedBarPlot' #

Arguments

:: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f) 
=> f (String, n)

bar heights with name

-> m ()

add plot to the Axis

Simple version of namedBarPlot without any modification to the Plot.

Example

Expand

import Plots
namedBarAxis' :: Axis B V2 Double
namedBarAxis' = r2Axis &~ do
  xMin ?= 0
  hide majorGridLines
  namedBarPlot' [("eggs", 12), ("bacon", 5), ("sausage", 9), ("beans", 3)]
namedBarExample' = renderAxis namedBarAxis'

namedBarPlot #

Arguments

:: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f) 
=> f (String, n)

bar heights with name

-> State (Plot (BarPlot n) b) ()

changes to the bars

-> m ()

changes to the Axis

A add BarPlot to an Axis while naming the bars.

Example

Expand

import Plots
namedBarAxis :: Axis B V2 Double
namedBarAxis = r2Axis &~ do
  yMin ?= 0
  hide (xAxis . majorGridLines)
  namedBarPlot [("eggs", 12), ("bacon", 5), ("sausage", 9), ("beans", 3)] $ do
    vertical .= True
    barWidth //= 2

namedBarExample = renderAxis namedBarAxis

barPlot' #

Arguments

:: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f) 
=> f n

bar heights

-> m ()

changes to the Axis

Simple version of barPlot without any modification to the Plot.

Example

Expand

import Plots
barAxis' :: Axis B V2 Double
barAxis' = r2Axis &~ do
  xMin ?= 0
  hide (yAxis . majorGridLines)
  barPlot' [13.5, 3.0, 6.9, 7.2, 4.6]
barExample' = renderAxis barAxis'

barPlot #

Arguments

:: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f) 
=> f n

bar heights

-> State (Plot (BarPlot n) b) ()

changes to the bars

-> m ()

changes to the Axis

A add BarPlot to an Axis.

Example

Expand

import Plots
barAxis :: Axis B V2 Double
barAxis = r2Axis &~ do
  yMin ?= 0
  hide majorGridLines
  barPlot [13.5, 3.0, 6.9, 7.2, 4.6] $ do
    vertical .= True
    barWidth //= 2
barExample = renderAxis barAxis

mkGroupedBars #

Arguments

:: Fractional n 
=> n

width factor of individual bars (1 = touching)

-> BarLayout n 
-> [[n]] 
-> [BarPlot n] 

Make bars that are grouped together. Each group of bars is treated as a single bar when using the BarPlotsOpts. There is an addition parameter to adjust the width of each individual bar.

mkStackedEqualBars #

Arguments

:: Fractional n 
=> n

value each bar reaches

-> BarLayout n 
-> [[n]]

values

-> [BarPlot n] 

Similar to mkMultiStacked but stack has the same height.

mkStackedBars :: Num n => BarLayout n -> [[n]] -> [BarPlot n] #

Create uniform bars from groups of data, placing one on top of the other. The first list will be the same as mkUniformBars opts (map (0,) ys), subsequent lists will be placed on top.

mkRunningBars :: Num n => BarLayout n -> [[(n, n)]] -> [BarPlot n] #

Create uniform bars from groups of data, placing one group after the other.

mkFloatingBars :: Foldable f => BarLayout n -> f (n, n) -> BarPlot n #

Create equidistant bars with lower and upper bounds for each bar.

mkBars :: (Foldable f, Num n) => BarLayout n -> f n -> BarPlot n #

Create equidistant bars using the values.

data BarLayout n #

The way an individual bar plot or a group of bars plots are laid out on the axis.

Instances
Fractional n => Default (BarLayout n) 
Instance details

Defined in Plots.Types.Bar

Methods

def :: BarLayout n #

HasBarLayout (BarLayout n) 
Instance details

Defined in Plots.Types.Bar

HasOrientation (BarLayout n) 
Instance details

Defined in Plots.Types.Bar

type N (BarLayout n) 
Instance details

Defined in Plots.Types.Bar

type N (BarLayout n) = n

class HasOrientation a => HasBarLayout a where #

Class of things that have a modifiable BarLayout.

Minimal complete definition

barLayout

Methods

barLayout :: Lens' a (BarLayout (N a)) #

Lens onto the BarLayout

barWidth :: Lens' a (N a) #

The width bar for single / stacked bars or the width of a group for grouped bar plot.

Default is 0.8

barSpacing :: Lens' a (N a) #

The spacing between each bar or group of bars.

Default is 1

barStart :: Lens' a (N a) #

The distance from the axis to centre of the first bar.

Default is 1

Instances
HasBarLayout (BarLayout n) 
Instance details

Defined in Plots.Types.Bar

HasBarLayout (BarPlot n) 
Instance details

Defined in Plots.Types.Bar

Methods

barLayout :: Lens' (BarPlot n) (BarLayout (N (BarPlot n))) #

barWidth :: Lens' (BarPlot n) (N (BarPlot n)) #

barSpacing :: Lens' (BarPlot n) (N (BarPlot n)) #

barStart :: Lens' (BarPlot n) (N (BarPlot n)) #

HasBarLayout a => HasBarLayout (Plot a b) 
Instance details

Defined in Plots.Types.Bar

Methods

barLayout :: Lens' (Plot a b) (BarLayout (N (Plot a b))) #

barWidth :: Lens' (Plot a b) (N (Plot a b)) #

barSpacing :: Lens' (Plot a b) (N (Plot a b)) #

barStart :: Lens' (Plot a b) (N (Plot a b)) #

HasBarLayout (MultiBarState b n a) 
Instance details

Defined in Plots.Types.Bar

Methods

barLayout :: Lens' (MultiBarState b n a) (BarLayout (N (MultiBarState b n a))) #

barWidth :: Lens' (MultiBarState b n a) (N (MultiBarState b n a)) #

barSpacing :: Lens' (MultiBarState b n a) (N (MultiBarState b n a)) #

barStart :: Lens' (MultiBarState b n a) (N (MultiBarState b n a)) #

data BarPlot n #

A bar plot for a single set of bars. Multi-bar plots are achieved by having multiple BarPlots. Each bar plot corresponds to a single legend entry. To get multiple bar entries/colours, use multiple BarPlots

Instances
HasBarLayout (BarPlot n) 
Instance details

Defined in Plots.Types.Bar

Methods

barLayout :: Lens' (BarPlot n) (BarLayout (N (BarPlot n))) #

barWidth :: Lens' (BarPlot n) (N (BarPlot n)) #

barSpacing :: Lens' (BarPlot n) (N (BarPlot n)) #

barStart :: Lens' (BarPlot n) (N (BarPlot n)) #

HasOrientation (BarPlot n) 
Instance details

Defined in Plots.Types.Bar

OrderedField n => Enveloped (BarPlot n) 
Instance details

Defined in Plots.Types.Bar

Methods

getEnvelope :: BarPlot n -> Envelope (V (BarPlot n)) (N (BarPlot n))

(TypeableFloat n, Renderable (Path V2 n) b) => Plotable (BarPlot n) b 
Instance details

Defined in Plots.Types.Bar

Methods

renderPlotable :: InSpace v n0 (BarPlot n) => AxisSpec v n0 -> PlotStyle b v n0 -> BarPlot n -> QDiagram b v n0 Any #

defLegendPic :: InSpace v n0 (BarPlot n) => PlotStyle b v n0 -> BarPlot n -> QDiagram b v n0 Any #

type N (BarPlot n) 
Instance details

Defined in Plots.Types.Bar

type N (BarPlot n) = n
type V (BarPlot n) 
Instance details

Defined in Plots.Types.Bar

type V (BarPlot n) = V2

data MultiBarState b n a #

The MultiBarState is used to set the various options available when building multiple bar plots together. The main functions used to modify this state:

Instances
HasBarLayout (MultiBarState b n a) 
Instance details

Defined in Plots.Types.Bar

Methods

barLayout :: Lens' (MultiBarState b n a) (BarLayout (N (MultiBarState b n a))) #

barWidth :: Lens' (MultiBarState b n a) (N (MultiBarState b n a)) #

barSpacing :: Lens' (MultiBarState b n a) (N (MultiBarState b n a)) #

barStart :: Lens' (MultiBarState b n a) (N (MultiBarState b n a)) #

HasOrientation (MultiBarState b n a) 
Instance details

Defined in Plots.Types.Bar

HasLabels (MultiBarState b n a) 
Instance details

Defined in Plots.Types.Bar

Methods

labels :: Lens' (MultiBarState b n a) [String]

type N (MultiBarState b n a) 
Instance details

Defined in Plots.Types.Bar

type N (MultiBarState b n a) = n

heatMapIndexed' #

Arguments

:: (VectorLike V2 Int i, TypeableFloat n, Typeable b, MonadState (Axis b V2 n) m, Renderable (Path V2 n) b) 
=> i

extent of array

-> (i -> Double)

heat from index

-> m ()

add plot to Axis

Add a HeatMap plot using the extent of the heatmap and a generating function without changes to the heap map options.

heatMapIndexed :: V2 Int     -> (V2 Int -> Double)     -> State (Axis b V2 n) ()
heatMapIndexed :: (Int, Int) -> ((Int, Int) -> Double) -> State (Axis b V2 n) ()

Example

Expand

import Plots
heatMapIndexedAxis' :: Axis B V2 Double
heatMapIndexedAxis' = r2Axis &~ do
  display colourBar
  axisExtend .= noExtend
  axisColourMap .= Plots.magma

  let f (V2 x y) = fromIntegral x + fromIntegral y
  heatMapIndexed' (V2 3 3) f
heatMapIndexedExample' = renderAxis heatMapIndexedAxis'

heatMapIndexed #

Arguments

:: (VectorLike V2 Int i, TypeableFloat n, Typeable b, MonadState (Axis b V2 n) m, Renderable (Path V2 n) b) 
=> i

extent of array

-> (i -> Double)

heat from index

-> State (Plot (HeatMap b n) b) ()

changes to plot options

-> m ()

add plot to Axis

Add a HeatMap plot using the extent of the heatmap and a generating function.

heatMapIndexed :: V2 Int     -> (V2 Int -> Double)     -> State (Plot (HeatMap b n)) () -> State (Axis b V2 n) ()
heatMapIndexed :: (Int, Int) -> ((Int, Int) -> Double) -> State (Plot (HeatMap b n)) () -> State (Axis b V2 n) ()

Example

Expand

import Plots
heatMapIndexedAxis :: Axis B V2 Double
heatMapIndexedAxis = r2Axis &~ do
  display colourBar
  axisExtend .= noExtend

  let f (V2 x y) = fromIntegral x + fromIntegral y
  heatMapIndexed (V2 3 3) f $ heatMapSize .= V2 10 10
heatMapIndexedExample = renderAxis heatMapIndexedAxis

heatMap' #

Arguments

:: (Foldable f, Foldable g, TypeableFloat n, Typeable b, MonadState (Axis b V2 n) m, Renderable (Path V2 n) b) 
=> f (g Double) 
-> m ()

add plot to Axis

Add a HeatMap plot using the extent of the heatmap and a generating function.

heatMap' :: [[Double]] -> State (Axis b V2 n) ()

Example

Expand

import Plots
heatMapAxis' :: Axis B V2 Double
heatMapAxis' = r2Axis &~ do
  display colourBar
  axisExtend .= noExtend
  axisColourMap .= Plots.magma

  let xs = [[1,2,3],[4,5,6]]
  heatMap' xs
heatMapExample' = renderAxis heatMapAxis'

heatMap #

Arguments

:: (Foldable f, Foldable g, TypeableFloat n, Typeable b, MonadState (Axis b V2 n) m, Renderable (Path V2 n) b) 
=> f (g Double) 
-> State (Plot (HeatMap b n) b) ()

changes to plot options

-> m ()

add plot to Axis

Add a HeatMap plot using the extent of the heatmap and a generating function.

heatMap :: [[Double]] -> State (Plot (HeatMap b n)) () -> State (Axis b V2 n) ()

Example

Expand

import Plots
heatMapAxis :: Axis B V2 Double
heatMapAxis = r2Axis &~ do
  display colourBar
  axisExtend .= noExtend

  let xs = [[1,2,3],[4,5,6]]
  heatMap xs $ heatMapSize .= V2 10 10
heatMapExample = renderAxis heatMapAxis

mkHeatMap :: (Renderable (Path V2 n) b, TypeableFloat n) => HeatMatrix -> HeatMap b n #

Construct a Heatmap using the given HeatMatrix.

pathHeatRender :: (Renderable (Path V2 n) b, TypeableFloat n) => HeatMatrix -> ColourMap -> QDiagram b V2 n Any #

Render the heat map as a collection squares made up of Trails. This method is compatible with all backends and should always look sharp. However it can become slow and large for large heat maps.

It is recommended to use pathHeatRender for small heat maps and pixelHeatRender for larger ones.

Example

Expand

import Plots

pathHeatRenderExample =
  let f (V2 x y) = fromIntegral x + fromIntegral y
      myHM       = mkHeatMatrix (V2 5 5) f
  in  pathHeatRender myHM viridis

heatImage :: HeatMatrix -> ColourMap -> Image PixelRGB8 #

Create an image of PixelsRGB8 using the heat matrix.

pixelHeatRender' :: (Renderable (DImage n Embedded) b, TypeableFloat n) => Int -> HeatMatrix -> ColourMap -> QDiagram b V2 n Any #

Render an heatmap as an ImageRGB8 with n pixels per heat matrix point.

Example

Expand

import Plots

pixelHeatRenderExample' =
  let f (V2 x y) = fromIntegral x + fromIntegral y
      myHM       = mkHeatMatrix (V2 5 5) f
  in  pixelHeatRender' 10 myHM viridis

pixelHeatRender :: (Renderable (DImage n Embedded) b, TypeableFloat n) => HeatMatrix -> ColourMap -> QDiagram b V2 n Any #

Render an heatmap as an ImageRGB8.

Example

Expand

import Plots

pixelHeatRenderExample =
  let f (V2 x y) = fromIntegral x + fromIntegral y
      myHM       = mkHeatMatrix (V2 5 5) f
  in  pixelHeatRender myHM viridis

hmPoints :: IndexedTraversal' (V2 Int) HeatMatrix Double #

Indexed traversal over the values of a HeatMatrix.

mkHeatMatrix' :: (Foldable f, Foldable g) => f (g Double) -> HeatMatrix #

Construct a heat matrix from a foldable of foldables.

mkHeatMatrix' :: [[Double]] -> HeatMatrix
mkHeatMatrix' :: [Vector Double] -> HeatMatrix

mkHeatMatrix :: V2 Int -> (V2 Int -> Double) -> HeatMatrix #

Construct a heat matrix from a size and a generating function.

data HeatMatrix #

2D Array of Doubles.

data HeatMap b n #

A mapping from points in a 2D axis do Doubles. These Doubles are converted to colours using the axis ColourMap.

Instances
HasHeatMap f (HeatMap b n) b 
Instance details

Defined in Plots.Types.HeatMap

Methods

heatMapOptions :: LensLike' f (HeatMap b n) (HeatMap b (N (HeatMap b n))) #

heatMapGridVisible :: LensLike' f (HeatMap b n) Bool #

heatMapGridStyle :: LensLike' f (HeatMap b n) (Style V2 (N (HeatMap b n))) #

heatMapSize :: LensLike' f (HeatMap b n) (V2 (N (HeatMap b n))) #

heatMapExtent :: LensLike' f (HeatMap b n) (V2 (N (HeatMap b n))) #

heatMapStart :: LensLike' f (HeatMap b n) (P2 (N (HeatMap b n))) #

heatMapCentre :: LensLike' f (HeatMap b n) (P2 (N (HeatMap b n))) #

heatMapLimits :: LensLike' f (HeatMap b n) (Maybe (Double, Double)) #

heatMapRender :: LensLike' f (HeatMap b n) (HeatMatrix -> ColourMap -> QDiagram b V2 (N (HeatMap b n)) Any) #

OrderedField n => Enveloped (HeatMap b n) 
Instance details

Defined in Plots.Types.HeatMap

Methods

getEnvelope :: HeatMap b n -> Envelope (V (HeatMap b n)) (N (HeatMap b n))

(Typeable b, TypeableFloat n, Renderable (Path V2 n) b) => Plotable (HeatMap b n) b 
Instance details

Defined in Plots.Types.HeatMap

Methods

renderPlotable :: InSpace v n0 (HeatMap b n) => AxisSpec v n0 -> PlotStyle b v n0 -> HeatMap b n -> QDiagram b v n0 Any #

defLegendPic :: InSpace v n0 (HeatMap b n) => PlotStyle b v n0 -> HeatMap b n -> QDiagram b v n0 Any #

type N (HeatMap b n) 
Instance details

Defined in Plots.Types.HeatMap

type N (HeatMap b n) = n
type V (HeatMap b n) 
Instance details

Defined in Plots.Types.HeatMap

type V (HeatMap b n) = V2

class HasHeatMap (f :: * -> *) a b | a -> b where #

Class of things that let you change the heatmap options.

Minimal complete definition

heatMapOptions

Methods

heatMapOptions :: LensLike' f a (HeatMap b (N a)) #

Lens onto the heatmap options.

heatMapGridVisible :: LensLike' f a Bool #

Whether there should be grid lines draw for the heat map.

Default is False.

heatMapGridStyle :: LensLike' f a (Style V2 (N a)) #

The style applied to the grid lines for the heat map, if they're visible.

Default is mempty.

heatMapSize :: LensLike' f a (V2 (N a)) #

The size of each individual square in the heat map.

Default is V2 1 1.

heatMapExtent :: LensLike' f a (V2 (N a)) #

The size of the full extend of the heat map.

Default is extent of the heat matrix.

heatMapStart :: LensLike' f a (P2 (N a)) #

The starting point at the bottom left corner of the heat map.

Default is origin

heatMapCentre :: LensLike' f a (P2 (N a)) #

The center point of the heat map.

heatMapLimits :: LensLike' f a (Maybe (Double, Double)) #

Limits (a,b) used on the data such that a is the start of the ColourMap and b is the end of the ColourMap. Default is (0,1).

heatMapRender :: LensLike' f a (HeatMatrix -> ColourMap -> QDiagram b V2 (N a) Any) #

Funtion used to render the heat map. See pathHeatRender and pixelHeatRender.

Default is pathHeatRender.

Instances
(Functor f, HasHeatMap f a b) => HasHeatMap f (Plot a b) b 
Instance details

Defined in Plots.Types.HeatMap

Methods

heatMapOptions :: LensLike' f (Plot a b) (HeatMap b (N (Plot a b))) #

heatMapGridVisible :: LensLike' f (Plot a b) Bool #

heatMapGridStyle :: LensLike' f (Plot a b) (Style V2 (N (Plot a b))) #

heatMapSize :: LensLike' f (Plot a b) (V2 (N (Plot a b))) #

heatMapExtent :: LensLike' f (Plot a b) (V2 (N (Plot a b))) #

heatMapStart :: LensLike' f (Plot a b) (P2 (N (Plot a b))) #

heatMapCentre :: LensLike' f (Plot a b) (P2 (N (Plot a b))) #

heatMapLimits :: LensLike' f (Plot a b) (Maybe (Double, Double)) #

heatMapRender :: LensLike' f (Plot a b) (HeatMatrix -> ColourMap -> QDiagram b V2 (N (Plot a b)) Any) #

HasHeatMap f (HeatMap b n) b 
Instance details

Defined in Plots.Types.HeatMap

Methods

heatMapOptions :: LensLike' f (HeatMap b n) (HeatMap b (N (HeatMap b n))) #

heatMapGridVisible :: LensLike' f (HeatMap b n) Bool #

heatMapGridStyle :: LensLike' f (HeatMap b n) (Style V2 (N (HeatMap b n))) #

heatMapSize :: LensLike' f (HeatMap b n) (V2 (N (HeatMap b n))) #

heatMapExtent :: LensLike' f (HeatMap b n) (V2 (N (HeatMap b n))) #

heatMapStart :: LensLike' f (HeatMap b n) (P2 (N (HeatMap b n))) #

heatMapCentre :: LensLike' f (HeatMap b n) (P2 (N (HeatMap b n))) #

heatMapLimits :: LensLike' f (HeatMap b n) (Maybe (Double, Double)) #

heatMapRender :: LensLike' f (HeatMap b n) (HeatMatrix -> ColourMap -> QDiagram b V2 (N (HeatMap b n)) Any) #

histogramPlotOf' :: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, RealFrac n) => Fold s n -> s -> m () #

Same as histogramPlotOf without any changes to the plot.

histogramPlotOf #

Arguments

:: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, RealFrac n) 
=> Fold s n

fold over the data

-> s

data to fold

-> State (Plot (HistogramOptions n) b) ()

change to the plot

-> m ()

add plot to the Axis

Add a HistogramPlot using a fold over the data.

histogramPlot' #

Arguments

:: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, Foldable f, RealFrac n) 
=> f n

data

-> m ()

add plot to axis

Make a HistogramPlot without changes to the plot options.

histogramPlot #

Arguments

:: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, Foldable f, RealFrac n) 
=> f n

data

-> State (Plot (HistogramOptions n) b) ()

changes to plot options

-> m ()

add plot to axis

Add a HistogramPlot to the AxisState from a data set.

Example

Expand

import Plots
histogramAxis :: Axis B V2 Double
histogramAxis = r2Axis &~ do
  histogramPlot sampleData $ do
    key "histogram"
    plotColor .= blue
    areaStyle . _opacity .= 0.5
histogramExample = renderAxis histogramAxis

mkHistogramPlot :: (Foldable f, RealFrac n) => HistogramOptions n -> f n -> HistogramPlot n #

Create a histogram by binning the data using the HistogramOptions.

cdf :: NormalisationMethod #

Cumulative density function estimate. The height of each bar is equal to the cumulative relative number of observations in the bin and all previous bins. The height of the last bar is 1.

Example

Expand

cumilative :: NormalisationMethod #

The height of each bar is the cumulative number of observations in each bin and all previous bins. The height of the last bar is the total number of observations.

Example

Expand

pdf :: NormalisationMethod #

The total area of the bars is 1. This gives a probability density function estimate.

Example

Expand

countDensity :: NormalisationMethod #

The height of each bar is n / w where n is the number of observations and w is the total width.

Example

Expand

probability :: NormalisationMethod #

The sum of the heights of the bars is equal to 1.

Example

Expand

count :: NormalisationMethod #

The height of each bar is the number of observations. This is the Default method.

Example

Expand

mkComputedHistogram #

Arguments

:: Foldable f 
=> n

start of first bin

-> n

width of each bin

-> f n

heights of the bins

-> HistogramPlot n 

Construct a HistogramPlot from raw histogram data.

computedHistogram #

Arguments

:: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, Foldable f) 
=> n

start of first bin

-> n

width of each bin

-> f n

heights of the bins

-> State (Plot (HistogramPlot n) b) () 
-> m () 

Plot an already computed histogram with equally sized bins.

data HistogramPlot n #

Simple histogram type supporting uniform bins.

Instances
HasOrientation (HistogramPlot n) 
Instance details

Defined in Plots.Types.Histogram

OrderedField n => Enveloped (HistogramPlot n) 
Instance details

Defined in Plots.Types.Histogram

Methods

getEnvelope :: HistogramPlot n -> Envelope (V (HistogramPlot n)) (N (HistogramPlot n))

(TypeableFloat n, Renderable (Path V2 n) b) => Plotable (HistogramPlot n) b 
Instance details

Defined in Plots.Types.Histogram

Methods

renderPlotable :: InSpace v n0 (HistogramPlot n) => AxisSpec v n0 -> PlotStyle b v n0 -> HistogramPlot n -> QDiagram b v n0 Any #

defLegendPic :: InSpace v n0 (HistogramPlot n) => PlotStyle b v n0 -> HistogramPlot n -> QDiagram b v n0 Any #

type N (HistogramPlot n) 
Instance details

Defined in Plots.Types.Histogram

type N (HistogramPlot n) = n
type V (HistogramPlot n) 
Instance details

Defined in Plots.Types.Histogram

type V (HistogramPlot n) = V2

data NormalisationMethod #

The way to normalise the data from a histogram. The default method is count.

Instances
Default NormalisationMethod 
Instance details

Defined in Plots.Types.Histogram

data HistogramOptions n #

Options for binning histogram data. For now only very basic histograms building is supported.

class HasOrientation a => HasHistogramOptions a where #

Minimal complete definition

histogramOptions

Methods

histogramOptions :: Lens' a (HistogramOptions (N a)) #

Options for building the histogram from data.

numBins :: Lens' a Int #

The number of bins (bars) to use for the histogram. Must be positive.

Default is 10.

binRange :: Lens' a (Maybe (N a, N a)) #

The range of data to consider when building the histogram. Any data outside the range is ignored.

Default is Nothing.

normaliseSample :: Lens' a NormalisationMethod #

Should the resulting histogram be normalised so the total area is 1.

Default is False.

mkPathOf :: (PointLike v n p, OrderedField n) => Fold s t -> Fold t p -> s -> Path v n #

Construct a localed trail from a fold over points.

mkPath :: (PointLike v n p, OrderedField n, Foldable f, Foldable g) => g (f p) -> Path v n #

Construct a localed trail from a fold over points.

mkTrailOf :: (PointLike v n p, OrderedField n) => Fold s p -> s -> Located (Trail v n) #

Construct a localed trail from a fold over points.

mkTrail :: (PointLike v n p, OrderedField n, Foldable f) => f p -> Located (Trail v n) #

Construct a localed trail from a list of folable of points.

smoothLinePlot' #

Arguments

:: (BaseSpace c ~ v, Foldable f, PointLike v n p, Plotable (Path v n) b, Fractional (v n), MonadState (Axis b c n) m) 
=> f p

points to turn into trail

-> m ()

add plot to the Axis

Add a smooth Path plot from a list of points using cubicSpline without changes to the plot options.

smoothLinePlot #

Arguments

:: (BaseSpace c ~ v, Foldable f, Metric v, PointLike v n p, Plotable (Path v n) b, Fractional (v n), MonadState (Axis b c n) m) 
=> f p

points to turn into trail

-> State (Plot (Path v n) b) ()

changes to plot options

-> m ()

add plot to the Axis

Add a smooth Path plot from a list of points using cubicSpline.

linePlot' #

Arguments

:: (BaseSpace c ~ v, Metric v, Foldable f, PointLike v n p, Plotable (Path v n) b, MonadState (Axis b c n) m) 
=> f p

points to turn into trail

-> m ()

add plot to the Axis

Add a Path plot from a list of points.

linePlot #

Arguments

:: (BaseSpace c ~ v, Metric v, Foldable f, PointLike v n p, Plotable (Path v n) b, MonadState (Axis b c n) m) 
=> f p

points to turn into trail

-> State (Plot (Path v n) b) ()

changes to plot options

-> m ()

add plot to the Axis

Add a Path plot from a list of points.

pathPlot' #

Arguments

:: (BaseSpace c ~ v, Plotable (Path v n) b, MonadState (Axis b c n) m) 
=> Path v n

path to plot

-> m ()

add plot to the Axis

Add a Path as a Plot to an Axis without changes to the plot options.

pathPlot #

Arguments

:: (BaseSpace c ~ v, Plotable (Path v n) b, MonadState (Axis b c n) m) 
=> Path v n

path to plot

-> State (Plot (Path v n) b) ()

changes to plot options

-> m ()

add plot to the Axis

Add a Path as a Plot to an Axis.

trailPlot' #

Arguments

:: (BaseSpace c ~ v, Plotable (Path v n) b, MonadState (Axis b c n) m) 
=> Trail v n

trail to plot

-> m ()

add plot to the Axis

Add a Trail as a Plot to an Axis without changes to the plot options.

trailPlot #

Arguments

:: (BaseSpace c ~ v, Plotable (Path v n) b, MonadState (Axis b c n) m) 
=> Trail v n

trail to plot

-> State (Plot (Path v n) b) ()

changes to plot options

-> m ()

add plot to the Axis

Add a Trail as a Plot to an Axis.

wedgePlot :: (v ~ BaseSpace c, v ~ V2, PointLike v n (Polar n), MonadState (Axis b c n) m, Plotable (Wedge n) b) => Direction V2 n -> Angle n -> State (Plot (Wedge n) b) () -> m () #

Add a single PiePlot to the AxisState from a data set.

Example

Expand

import Plots

wedgePlotAxis :: Axis B Polar Double
wedgePlotAxis = polarAxis &~ do
  wedgePlot xDir (38@@deg) $ key "wedge"
wedgeExample = renderAxis wedgePlotAxis

piePlot' #

Arguments

:: (MonadState (Axis b Polar n) m, Plotable (Wedge n) b, Foldable f) 
=> f n

weight of each wedge

-> m () 

Make a pie plot from list of values without any changes.

Example

Expand

import Plots

piePlotAxis' :: Axis B Polar Double
piePlotAxis' = polarAxis &~ do
  piePlot' [1,3,5,2]
  wedgeInnerRadius .= 0.5
  hide (axes . traversed)
pieExample' = renderAxis piePlotAxis'

piePlot #

Arguments

:: (MonadState (Axis b Polar n) m, Plotable (Wedge n) b, Foldable f) 
=> f a

data for each wedge

-> (a -> n)

extract weight of each wedge

-> State (PieState b n a) () 
-> m () 

Make a pie plot from a list of data by making a series of wedge plots.

Example

Expand

import Plots

pieData = [("red", 3), ("blue", 4), ("green", 2), ("purple", 5)]

piePlotAxis :: Axis B Polar Double
piePlotAxis = polarAxis &~ do
  piePlot pieData snd $ wedgeKeys fst
  hide (axes . traversed)
piePlotExample = renderAxis piePlotAxis

wedgeKeys :: Num n => (a -> String) -> State (PieState b n a) () #

Add a legend entry for each item given a function that extracts the item's name.

onWedges :: (a -> State (Plot (Wedge n) b) ()) -> State (PieState b n a) () #

Modify the state for each wedge given the data entry.

Some common lenses to use on the Wedge:

  • plotColour - change the colour of the bars
  • areaStyle - modify the style of the bars
  • key - add a legend entry for that group of bars
  • wedgeOffset - the offset of the wedge from the center

mkWedge #

Arguments

:: Num n 
=> Direction V2 n

starting direction

-> Angle n

width of wedge

-> Wedge n

resulting wedge

Create a pie wedge with unit radius, starting at direction d with width theta.

data Wedge n #

Contains information to draw a single wedge of a pie. It is not intended to be draw directly. Instead use 'piePlot.

Instances
HasWedge f (Wedge n) 
Instance details

Defined in Plots.Types.Pie

Methods

pieWedge :: LensLike' f (Wedge n) (Wedge (N (Wedge n))) #

wedgeOuterRadius :: LensLike' f (Wedge n) (N (Wedge n)) #

wedgeInnerRadius :: LensLike' f (Wedge n) (N (Wedge n)) #

wedgeOffset :: LensLike' f (Wedge n) (N (Wedge n)) #

wedgeWidth :: LensLike' f (Wedge n) (Angle (N (Wedge n))) #

wedgeDirection :: LensLike' f (Wedge n) (Direction V2 (N (Wedge n))) #

RealFloat n => Enveloped (Wedge n) 
Instance details

Defined in Plots.Types.Pie

Methods

getEnvelope :: Wedge n -> Envelope (V (Wedge n)) (N (Wedge n))

(TypeableFloat n, Renderable (Path V2 n) b) => Plotable (Wedge n) b 
Instance details

Defined in Plots.Types.Pie

Methods

renderPlotable :: InSpace v n0 (Wedge n) => AxisSpec v n0 -> PlotStyle b v n0 -> Wedge n -> QDiagram b v n0 Any #

defLegendPic :: InSpace v n0 (Wedge n) => PlotStyle b v n0 -> Wedge n -> QDiagram b v n0 Any #

type N (Wedge n) 
Instance details

Defined in Plots.Types.Pie

type N (Wedge n) = n
type V (Wedge n) 
Instance details

Defined in Plots.Types.Pie

type V (Wedge n) = V2

class HasWedge (f :: * -> *) a where #

Minimal complete definition

pieWedge

Methods

pieWedge :: LensLike' f a (Wedge (N a)) #

Description on how to draw a wedge.

wedgeOuterRadius :: LensLike' f a (N a) #

The outside radius of the wedge. Default is 1.

wedgeInnerRadius :: LensLike' f a (N a) #

The inside radius of the wedge. Default is $0$.

wedgeOffset :: LensLike' f a (N a) #

The offset of the wedge from the center.

wedgeWidth :: LensLike' f a (Angle (N a)) #

The width of the wedge, starting from the wedgeDirection.

wedgeDirection :: LensLike' f a (Direction V2 (N a)) #

The inititial direction of the wedge.

Instances
HasWedge f (Wedge n) 
Instance details

Defined in Plots.Types.Pie

Methods

pieWedge :: LensLike' f (Wedge n) (Wedge (N (Wedge n))) #

wedgeOuterRadius :: LensLike' f (Wedge n) (N (Wedge n)) #

wedgeInnerRadius :: LensLike' f (Wedge n) (N (Wedge n)) #

wedgeOffset :: LensLike' f (Wedge n) (N (Wedge n)) #

wedgeWidth :: LensLike' f (Wedge n) (Angle (N (Wedge n))) #

wedgeDirection :: LensLike' f (Wedge n) (Direction V2 (N (Wedge n))) #

(Functor f, HasWedge f a) => HasWedge f (Plot a b) 
Instance details

Defined in Plots.Types.Pie

Methods

pieWedge :: LensLike' f (Plot a b) (Wedge (N (Plot a b))) #

wedgeOuterRadius :: LensLike' f (Plot a b) (N (Plot a b)) #

wedgeInnerRadius :: LensLike' f (Plot a b) (N (Plot a b)) #

wedgeOffset :: LensLike' f (Plot a b) (N (Plot a b)) #

wedgeWidth :: LensLike' f (Plot a b) (Angle (N (Plot a b))) #

wedgeDirection :: LensLike' f (Plot a b) (Direction V2 (N (Plot a b))) #

(v ~ V2, Applicative f, Typeable n) => HasWedge f (StyledPlot b v n) 
Instance details

Defined in Plots.Types.Pie

Methods

pieWedge :: LensLike' f (StyledPlot b v n) (Wedge (N (StyledPlot b v n))) #

wedgeOuterRadius :: LensLike' f (StyledPlot b v n) (N (StyledPlot b v n)) #

wedgeInnerRadius :: LensLike' f (StyledPlot b v n) (N (StyledPlot b v n)) #

wedgeOffset :: LensLike' f (StyledPlot b v n) (N (StyledPlot b v n)) #

wedgeWidth :: LensLike' f (StyledPlot b v n) (Angle (N (StyledPlot b v n))) #

wedgeDirection :: LensLike' f (StyledPlot b v n) (Direction V2 (N (StyledPlot b v n))) #

Applicative f => HasWedge f (PieState b n a) 
Instance details

Defined in Plots.Types.Pie

Methods

pieWedge :: LensLike' f (PieState b n a) (Wedge (N (PieState b n a))) #

wedgeOuterRadius :: LensLike' f (PieState b n a) (N (PieState b n a)) #

wedgeInnerRadius :: LensLike' f (PieState b n a) (N (PieState b n a)) #

wedgeOffset :: LensLike' f (PieState b n a) (N (PieState b n a)) #

wedgeWidth :: LensLike' f (PieState b n a) (Angle (N (PieState b n a))) #

wedgeDirection :: LensLike' f (PieState b n a) (Direction V2 (N (PieState b n a))) #

(Applicative f, Typeable b, v ~ V2, Typeable n) => HasWedge f (DynamicPlot b v n) 
Instance details

Defined in Plots.Types.Pie

Methods

pieWedge :: LensLike' f (DynamicPlot b v n) (Wedge (N (DynamicPlot b v n))) #

wedgeOuterRadius :: LensLike' f (DynamicPlot b v n) (N (DynamicPlot b v n)) #

wedgeInnerRadius :: LensLike' f (DynamicPlot b v n) (N (DynamicPlot b v n)) #

wedgeOffset :: LensLike' f (DynamicPlot b v n) (N (DynamicPlot b v n)) #

wedgeWidth :: LensLike' f (DynamicPlot b v n) (Angle (N (DynamicPlot b v n))) #

wedgeDirection :: LensLike' f (DynamicPlot b v n) (Direction V2 (N (DynamicPlot b v n))) #

(BaseSpace c ~ V2, Settable f, Typeable n) => HasWedge f (Axis b c n) 
Instance details

Defined in Plots.Types.Pie

Methods

pieWedge :: LensLike' f (Axis b c n) (Wedge (N (Axis b c n))) #

wedgeOuterRadius :: LensLike' f (Axis b c n) (N (Axis b c n)) #

wedgeInnerRadius :: LensLike' f (Axis b c n) (N (Axis b c n)) #

wedgeOffset :: LensLike' f (Axis b c n) (N (Axis b c n)) #

wedgeWidth :: LensLike' f (Axis b c n) (Angle (N (Axis b c n))) #

wedgeDirection :: LensLike' f (Axis b c n) (Direction V2 (N (Axis b c n))) #

data PieState b n a #

The state used to draw a part chart made of multiple pie wedges.

Instances
Applicative f => HasWedge f (PieState b n a) 
Instance details

Defined in Plots.Types.Pie

Methods

pieWedge :: LensLike' f (PieState b n a) (Wedge (N (PieState b n a))) #

wedgeOuterRadius :: LensLike' f (PieState b n a) (N (PieState b n a)) #

wedgeInnerRadius :: LensLike' f (PieState b n a) (N (PieState b n a)) #

wedgeOffset :: LensLike' f (PieState b n a) (N (PieState b n a)) #

wedgeWidth :: LensLike' f (PieState b n a) (Angle (N (PieState b n a))) #

wedgeDirection :: LensLike' f (PieState b n a) (Direction V2 (N (PieState b n a))) #

type N (PieState b n a) 
Instance details

Defined in Plots.Types.Pie

type N (PieState b n a) = n
type V (PieState b n a) 
Instance details

Defined in Plots.Types.Pie

type V (PieState b n a) = V2

gscatterOptionsFor :: (InSpace v n a, HasScatterOptions f a d) => proxy d -> LensLike' f a (ScatterOptions v n d) #

Helper to traverse over a general scatter plot where the type of d is not infered.

gscatterPlot #

Arguments

:: (BaseSpace c ~ v, PointLike v n p, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Typeable d, Foldable f) 
=> f d

data

-> (d -> p)

extract point from data

-> State (Plot (ScatterOptions v n d) b) ()

options for plot

-> m ()

add plot to Axis

A general scatter plot allow using any data type d to determine the scatterTransform and scatterStyle.

bubbleStyle :: (InSpace v n a, Settable f, HasScatterOptions f a (n, Point v n)) => LensLike' f a (n -> Style v n) #

Setter over the style function for a bubblePlot. Default is mempty.

bubbleStyle :: Setter' (Plot (BubbleOptions v n) v) (n -> Style v n)

Note that this is the less general version of bubblePlot . scatterTransform, which would give a LensLike onto (n, Point v n) -> Style v n.

bubbleTransform :: (InSpace v n a, HasScatterOptions f a (n, Point v n), Settable f) => LensLike' f a (n -> Transformation v n) #

Setter over the transform function for a bubblePlot. Default is scale.

bubbleOptions :: Setter' (Plot (BubbleOptions v n) v) (n -> Transformation v n)

Note that this is the less general version of bubblePlot . scatterTransform, which would give a LensLike onto (n, Point v n) -> Transformation v n.

bubbleOptions :: (InSpace v n a, HasScatterOptions f a (n, Point v n)) => LensLike' f a (BubbleOptions v n) #

LensLike onto into a ScatterOptions made up of a scaler n, and a point, Point v n

bubbleOptions :: Lens' (Plot (BubbleOptions v n) v) (BubbleOptions v n)

bubblePlotOf' #

Arguments

:: (BaseSpace c ~ v, PointLike v n p, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Typeable n) 
=> Fold s (n, p)

fold over the data

-> s

data

-> State (Plot (BubbleOptions v n) b) ()

changes to the options

-> m ()

add plot to Axis

Version of bubblePlot using a Fold over the data without any changes to the BubbleOptions.

bubblePlotOf #

Arguments

:: (BaseSpace c ~ v, PointLike v n p, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Typeable n) 
=> Fold s (n, p)

fold over the data

-> s

data

-> State (Plot (BubbleOptions v n) b) ()

changes to the options

-> m ()

add plot to Axis

Version of bubblePlot using a Fold over the data.

bubblePlot' #

Arguments

:: (v ~ BaseSpace c, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Foldable f) 
=> f (n, p)

fold over points with a size

-> m ()

add plot to Axis

Simple version of bubblePlot without any changes to the Plot.

bubblePlot #

Arguments

:: (BaseSpace c ~ v, PointLike v n p, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Typeable n, Foldable f) 
=> f (n, p)

fold over points with a size

-> State (Plot (BubbleOptions v n) b) ()

changes to the options

-> m ()

add plot to Axis

Scatter plots with extra numeric parameter. By default the extra parameter is the scale of the marker but this can be changed.

scatterPlotOf' #

Arguments

:: (BaseSpace c ~ v, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b) 
=> Fold s p

fold over points

-> s

data to fold

-> m ()

add plot to axis

Version of scatterPlot that accepts a Fold over the data without any changes to the ScatterOptions.

scatterPlotOf #

Arguments

:: (BaseSpace c ~ v, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b) 
=> Fold s p

fold over points

-> s

data to fold

-> State (Plot (ScatterOptions v n (Point v n)) b) ()

changes to plot options

-> m ()

add plot to Axis

Version of scatterPlot that accepts a Fold over the data.

scatterPlot' #

Arguments

:: (BaseSpace c ~ v, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Foldable f) 
=> f p

points to plot

-> m ()

add plot to Axis

Version of scatterPlot without any changes to the ScatterOptions.

Example

Expand

import Plots
mydata4 = [(1,3), (2,5.5), (3.2, 6), (3.5, 6.1)]
mydata5 = mydata1 & each . _1 *~ 0.5
mydata6 = [V2 1.2 2.7, V2 2 5.1, V2 3.2 2.6, V2 3.5 5]
scatterAxis' :: Axis B V2 Double
scatterAxis' = r2Axis &~ do
  scatterPlot' mydata4
  scatterPlot' mydata5
  scatterPlot' mydata6
scatterExample' = renderAxis scatterAxis'

scatterPlot #

Arguments

:: (BaseSpace c ~ v, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Foldable f) 
=> f p

points to plot

-> State (Plot (ScatterOptions v n (Point v n)) b) ()

changes to plot options

-> m ()

add plot to Axis

Add a ScatterPlot to the AxisState from a data set.

  myaxis = r2Axis ~&
    scatterPlot data1

Example

Expand

import Plots
mydata1 = [(1,3), (2,5.5), (3.2, 6), (3.5, 6.1)]
mydata2 = mydata1 & each . _1 *~ 0.5
mydata3 = [V2 1.2 2.7, V2 2 5.1, V2 3.2 2.6, V2 3.5 5]
scatterAxis :: Axis B V2 Double
scatterAxis = r2Axis &~ do
  scatterPlot mydata1 $ key "data 1"
  scatterPlot mydata2 $ key "data 2"
  scatterPlot mydata3 $ key "data 3"
scatterExample = renderAxis scatterAxis

scatterOptions :: (InSpace v n a, HasScatterOptions f a (Point v n)) => LensLike' f a (ScatterOptions v n (Point v n)) #

Lens onto a scatter plot of points.

mkScatterOptions :: (PointLike v n p, Foldable f, Fractional n) => f a -> (a -> p) -> ScatterOptions v n a #

Low level construction of ScatterOptions.

data ScatterPlot (v :: * -> *) n #

A general data type for scatter plots. Allows storing different types of data as well as allowing transforms depending on the data.

Instances
HasConnectingLine f (ScatterPlot v n) 
Instance details

Defined in Plots.Types.Scatter

(Applicative f, Typeable v, Typeable n, Typeable d) => HasScatterOptions f (ScatterPlot v n) d 
Instance details

Defined in Plots.Types.Scatter

Methods

gscatterOptions :: LensLike' f (ScatterPlot v n) (ScatterOptions (V (ScatterPlot v n)) (N (ScatterPlot v n)) d) #

scatterTransform :: LensLike' f (ScatterPlot v n) (d -> Transformation (V (ScatterPlot v n)) (N (ScatterPlot v n))) #

scatterStyle :: LensLike' f (ScatterPlot v n) (d -> Style (V (ScatterPlot v n)) (N (ScatterPlot v n))) #

scatterPosition :: LensLike' f (ScatterPlot v n) (d -> Point (V (ScatterPlot v n)) (N (ScatterPlot v n))) #

(Metric v, OrderedField n) => Enveloped (ScatterPlot v n) 
Instance details

Defined in Plots.Types.Scatter

Methods

getEnvelope :: ScatterPlot v n -> Envelope (V (ScatterPlot v n)) (N (ScatterPlot v n))

(TypeableFloat n, Renderable (Path V2 n) b) => Plotable (ScatterPlot V2 n) b 
Instance details

Defined in Plots.Types.Scatter

Methods

renderPlotable :: InSpace v n0 (ScatterPlot V2 n) => AxisSpec v n0 -> PlotStyle b v n0 -> ScatterPlot V2 n -> QDiagram b v n0 Any #

defLegendPic :: InSpace v n0 (ScatterPlot V2 n) => PlotStyle b v n0 -> ScatterPlot V2 n -> QDiagram b v n0 Any #

type N (ScatterPlot v n) 
Instance details

Defined in Plots.Types.Scatter

type N (ScatterPlot v n) = n
type V (ScatterPlot v n) 
Instance details

Defined in Plots.Types.Scatter

type V (ScatterPlot v n) = v

data ScatterOptions (v :: * -> *) n a #

A general data type for scatter plots. Allows storing different types of data as well as allowing transforms depending on the data.

Instances
HasConnectingLine f (ScatterOptions v n a) 
Instance details

Defined in Plots.Types.Scatter

d ~ d' => HasScatterOptions f (ScatterOptions v n d) d' 
Instance details

Defined in Plots.Types.Scatter

Methods

gscatterOptions :: LensLike' f (ScatterOptions v n d) (ScatterOptions (V (ScatterOptions v n d)) (N (ScatterOptions v n d)) d') #

scatterTransform :: LensLike' f (ScatterOptions v n d) (d' -> Transformation (V (ScatterOptions v n d)) (N (ScatterOptions v n d))) #

scatterStyle :: LensLike' f (ScatterOptions v n d) (d' -> Style (V (ScatterOptions v n d)) (N (ScatterOptions v n d))) #

scatterPosition :: LensLike' f (ScatterOptions v n d) (d' -> Point (V (ScatterOptions v n d)) (N (ScatterOptions v n d))) #

type N (ScatterOptions v n a) 
Instance details

Defined in Plots.Types.Scatter

type N (ScatterOptions v n a) = n
type V (ScatterOptions v n a) 
Instance details

Defined in Plots.Types.Scatter

type V (ScatterOptions v n a) = v

class HasConnectingLine (f :: * -> *) a where #

Class of things that have a LensLike for a ScatterPlot 's connecting line.

Minimal complete definition

connectingLine

Methods

connectingLine :: LensLike' f a Bool #

LensLike onto whether the scatter plot should have a connecting line between points. If the line is present, it uses the lineStyle from the PlotStyle.

Instances
HasConnectingLine f (ScatterPlot v n) 
Instance details

Defined in Plots.Types.Scatter

HasConnectingLine f p => HasConnectingLine f (Plot p b) 
Instance details

Defined in Plots.Types.Scatter

Methods

connectingLine :: LensLike' f (Plot p b) Bool #

(Applicative f, Typeable v, Typeable n) => HasConnectingLine f (StyledPlot b v n) 
Instance details

Defined in Plots.Types.Scatter

HasConnectingLine f (ScatterOptions v n a) 
Instance details

Defined in Plots.Types.Scatter

(Applicative f, Typeable b, Typeable v, Typeable n) => HasConnectingLine f (DynamicPlot b v n) 
Instance details

Defined in Plots.Types.Scatter

(Settable f, Typeable (BaseSpace c), Typeable n) => HasConnectingLine f (Axis b c n) 
Instance details

Defined in Plots.Types.Scatter

Methods

connectingLine :: LensLike' f (Axis b c n) Bool #

class HasScatterOptions (f :: * -> *) a d where #

Minimal complete definition

gscatterOptions

Methods

gscatterOptions :: LensLike' f a (ScatterOptions (V a) (N a) d) #

Lens onto the ScatterOptions for a general scatter plot.

scatterTransform :: LensLike' f a (d -> Transformation (V a) (N a)) #

Apply a transform to the markers using the associated data.

scatterStyle :: LensLike' f a (d -> Style (V a) (N a)) #

Apply a style to the markers using the associated data.

scatterPosition :: LensLike' f a (d -> Point (V a) (N a)) #

Change the position of the markers depending on the data.

Instances
(Applicative f, Typeable v, Typeable n, Typeable d) => HasScatterOptions f (ScatterPlot v n) d 
Instance details

Defined in Plots.Types.Scatter

Methods

gscatterOptions :: LensLike' f (ScatterPlot v n) (ScatterOptions (V (ScatterPlot v n)) (N (ScatterPlot v n)) d) #

scatterTransform :: LensLike' f (ScatterPlot v n) (d -> Transformation (V (ScatterPlot v n)) (N (ScatterPlot v n))) #

scatterStyle :: LensLike' f (ScatterPlot v n) (d -> Style (V (ScatterPlot v n)) (N (ScatterPlot v n))) #

scatterPosition :: LensLike' f (ScatterPlot v n) (d -> Point (V (ScatterPlot v n)) (N (ScatterPlot v n))) #

(Functor f, HasScatterOptions f p a) => HasScatterOptions f (Plot p b) a 
Instance details

Defined in Plots.Types.Scatter

Methods

gscatterOptions :: LensLike' f (Plot p b) (ScatterOptions (V (Plot p b)) (N (Plot p b)) a) #

scatterTransform :: LensLike' f (Plot p b) (a -> Transformation (V (Plot p b)) (N (Plot p b))) #

scatterStyle :: LensLike' f (Plot p b) (a -> Style (V (Plot p b)) (N (Plot p b))) #

scatterPosition :: LensLike' f (Plot p b) (a -> Point (V (Plot p b)) (N (Plot p b))) #

d ~ d' => HasScatterOptions f (ScatterOptions v n d) d' 
Instance details

Defined in Plots.Types.Scatter

Methods

gscatterOptions :: LensLike' f (ScatterOptions v n d) (ScatterOptions (V (ScatterOptions v n d)) (N (ScatterOptions v n d)) d') #

scatterTransform :: LensLike' f (ScatterOptions v n d) (d' -> Transformation (V (ScatterOptions v n d)) (N (ScatterOptions v n d))) #

scatterStyle :: LensLike' f (ScatterOptions v n d) (d' -> Style (V (ScatterOptions v n d)) (N (ScatterOptions v n d))) #

scatterPosition :: LensLike' f (ScatterOptions v n d) (d' -> Point (V (ScatterOptions v n d)) (N (ScatterOptions v n d))) #

(Applicative f, Typeable b, Typeable v, Typeable n, Typeable a) => HasScatterOptions f (DynamicPlot b v n) a 
Instance details

Defined in Plots.Types.Scatter

Methods

gscatterOptions :: LensLike' f (DynamicPlot b v n) (ScatterOptions (V (DynamicPlot b v n)) (N (DynamicPlot b v n)) a) #

scatterTransform :: LensLike' f (DynamicPlot b v n) (a -> Transformation (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

scatterStyle :: LensLike' f (DynamicPlot b v n) (a -> Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

scatterPosition :: LensLike' f (DynamicPlot b v n) (a -> Point (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

(Applicative f, Typeable b, Typeable (BaseSpace c), Typeable n, Typeable a) => HasScatterOptions f (Axis b c n) a 
Instance details

Defined in Plots.Types.Scatter

Methods

gscatterOptions :: LensLike' f (Axis b c n) (ScatterOptions (V (Axis b c n)) (N (Axis b c n)) a) #

scatterTransform :: LensLike' f (Axis b c n) (a -> Transformation (V (Axis b c n)) (N (Axis b c n))) #

scatterStyle :: LensLike' f (Axis b c n) (a -> Style (V (Axis b c n)) (N (Axis b c n))) #

scatterPosition :: LensLike' f (Axis b c n) (a -> Point (V (Axis b c n)) (N (Axis b c n))) #

type BubbleOptions (v :: * -> *) n = ScatterOptions v n (n, Point v n) #

A bubble plot is a scatter plot using point together with a scalar.

polarAxis :: (TypeableFloat n, Renderable (Text n) b, Renderable (Path V2 n) b) => Axis b Polar n #

thetaLabel :: Circle c => Lens' (Axis b c n) String #

The label for the radial axis. Shorthand for rAxis . axisLabelText.

thetaAxis :: Circle c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n) #

Lens onto the radial axis of an Axis.

rMax :: Radial c => Lens' (Axis b c n) (Maybe n) #

The minimum z value for the axis. If the value if Nothing (the Default), the bounds will be infered by the plots in the axis. rMin :: R3 c => Lens' (Axis b c n) (Maybe n) rMin = zAxis . boundMin

The minimum radial value for the axis. If the value if Nothing (the Default), the bounds will be infered by the plots in the axis.

rLabel :: Radial c => Lens' (Axis b c n) String #

The label for the radial axis. Shorthand for rAxis . axisLabelText.

rAxis :: Radial c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n) #

Lens onto the radial axis of an Axis.

zMax :: R3 c => Lens' (Axis b c n) (Maybe n) #

The minimum z value for the axis. If the value if Nothing (the Default), the bounds will be infered by the plots in the axis.

zMin :: R3 c => Lens' (Axis b c n) (Maybe n) #

The minimum z value for the axis. If the value if Nothing (the Default), the bounds will be infered by the plots in the axis.

zLabel :: R3 c => Lens' (Axis b c n) String #

The label for the z-axis. Shorthand for zAxis . axisLabelText.

zAxis :: R3 c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n) #

Lens onto the z-axis of an Axis.

yMax :: R2 c => Lens' (Axis b c n) (Maybe n) #

The minimum y value for the axis. If the value if Nothing (the Default), the bounds will be infered by the plots in the axis.

yMin :: R2 c => Lens' (Axis b c n) (Maybe n) #

The minimum y value for the axis. If the value if Nothing (the Default), the bounds will be infered by the plots in the axis.

yLabel :: R2 c => Lens' (Axis b c n) String #

The label for the y-axis. Shorthand for yAxis . axisLabelText.

yAxis :: R2 c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n) #

Lens onto the y-axis of an Axis.

xMax :: R1 c => Lens' (Axis b c n) (Maybe n) #

The minimum x value for the axis. If the value if Nothing (the Default), the bounds will be infered by the plots in the axis.

xMin :: R1 c => Lens' (Axis b c n) (Maybe n) #

The minimum x value for the axis. If the value if Nothing (the Default), the bounds will be infered by the plots in the axis.

xLabel :: R1 c => Lens' (Axis b c n) String #

The label for the x-axis. Shorthand for xAxis . axisLabelText.

xAxis :: R1 c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n) #

Lens onto the x-axis of an Axis.

r2Axis :: (TypeableFloat n, Renderable (Text n) b, Renderable (Path V2 n) b) => Axis b V2 n #

The default axis for plots in the V2 coordinate system.

addPlotable' #

Arguments

:: (InSpace (BaseSpace v) n p, MonadState (Axis b v n) m, Plotable p b) 
=> p

the raw plot

-> m ()

add plot to the Axis

Simple version of AddPlotable without any changes Plot.

addPlotable #

Arguments

:: (InSpace (BaseSpace c) n p, MonadState (Axis b c n) m, Plotable p b) 
=> p

the raw plot

-> State (Plot p b) ()

changes to the plot

-> m ()

add plot to the Axis

Add something Plotable to the Axis with a statefull modification of the Plot.

addPlot #

Arguments

:: (InSpace (BaseSpace c) n p, MonadState (Axis b c n) m, Plotable p b) 
=> Plot p b

the plot

-> m ()

add plot to the Axis

Add a Plotable Plot to an Axis.

colourBarRange :: Functor f => ((n, n) -> f (n, n)) -> Axis b v n -> f (Axis b v n) #

The range used for the colour bar limits. This is automaticlaly set when using heatMap or heatMap'

axisSize :: (HasLinearMap c, Num n, Ord n) => Lens' (Axis b c n) (SizeSpec c n) #

The size used for the rendered axis.

plotModifier :: BaseSpace c ~ v => Lens' (Axis b c n) (Endo (StyledPlot b v n)) #

Lens onto the modifier set by finalPlots. This gets applied to all plots in the axis, just before they are rendered.

finalPlots :: BaseSpace c ~ v => Setter' (Axis b c n) (StyledPlot b v n) #

Setter over the final plot before the axis is rendered.

For example, to make all ScatterPlots in the axis use a connectingLine (both currently in the axis and ones added later), you can add

finalPlots . connectingLine .= True

currentPlots :: BaseSpace c ~ v => Traversal' (Axis b c n) (DynamicPlot b v n) #

Traversal over the current plots in the axis.

For example, to make all ScatterPlots currently in the axis use a connectingLine, you can write

finalPlots . connectingLine .= True

axisPlots :: BaseSpace c ~ v => Lens' (Axis b c n) [DynamicPlot b v n] #

The list of plots currently in the axis.

axes :: (v ~ BaseSpace c, v ~ BaseSpace c') => Lens (Axis b c n) (Axis b c' n) (c (SingleAxis b v n)) (c' (SingleAxis b v n)) #

Lens onto the separate axes of an axis. Allows changing the coordinate system as long as the BaseSpace is the same.

axes :: Lens' (Axis b c n) (c (SingleAxis b v n))

data SingleAxis b (v :: * -> *) n #

Render infomation for a single axis line.

Instances
Functor f => HasMajorTicks f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

majorTicks :: LensLike' f (SingleAxis b v n) (MajorTicks (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

majorTicksFunction :: LensLike' f (SingleAxis b v n) ((N (SingleAxis b v n), N (SingleAxis b v n)) -> [N (SingleAxis b v n)]) #

majorTicksAlignment :: LensLike' f (SingleAxis b v n) TicksAlignment #

majorTicksLength :: LensLike' f (SingleAxis b v n) (N (SingleAxis b v n)) #

majorTicksStyle :: LensLike' f (SingleAxis b v n) (Style (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

Functor f => HasMinorTicks f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

minorTicks :: LensLike' f (SingleAxis b v n) (MinorTicks (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

minorTicksFunction :: LensLike' f (SingleAxis b v n) ([N (SingleAxis b v n)] -> (N (SingleAxis b v n), N (SingleAxis b v n)) -> [N (SingleAxis b v n)]) #

minorTicksAlignment :: LensLike' f (SingleAxis b v n) TicksAlignment #

minorTicksLength :: LensLike' f (SingleAxis b v n) (N (SingleAxis b v n)) #

minorTicksStyle :: LensLike' f (SingleAxis b v n) (Style (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

Functor f => HasTicks f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

bothTicks :: LensLike' f (SingleAxis b v n) (Ticks (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

Functor f => HasMajorGridLines f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

majorGridLines :: LensLike' f (SingleAxis b v n) (MajorGridLines (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

majorGridLinesFunction :: LensLike' f (SingleAxis b v n) (GridLineFunction (N (SingleAxis b v n))) #

majorGridLinesStyle :: LensLike' f (SingleAxis b v n) (Style (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

Functor f => HasMinorGridLines f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

minorGridLines :: LensLike' f (SingleAxis b v n) (MinorGridLines (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

minorGridLinesFunction :: LensLike' f (SingleAxis b v n) (GridLineFunction (N (SingleAxis b v n))) #

minorGridLinesStyle :: LensLike' f (SingleAxis b v n) (Style (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

Functor f => HasGridLines f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

gridLines :: LensLike' f (SingleAxis b v n) (GridLines (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

Functor f => HasAxisLine f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

axisLine :: LensLike' f (SingleAxis b v n) (AxisLine (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

axisLineType :: LensLike' f (SingleAxis b v n) AxisLineType #

axisLineArrowOpts :: LensLike' f (SingleAxis b v n) (Maybe (ArrowOpts (N (SingleAxis b v n)))) #

axisLineStyle :: LensLike' f (SingleAxis b v n) (Style (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

Functor f => HasAxisScaling f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Functor f => HasAxisLabel f (SingleAxis b v n) b 
Instance details

Defined in Plots.Axis

Functor f => HasTickLabels f (SingleAxis b v n) b 
Instance details

Defined in Plots.Axis

Methods

tickLabel :: LensLike' f (SingleAxis b v n) (TickLabels b (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

tickLabelTextFunction :: LensLike' f (SingleAxis b v n) (TextFunction b (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

tickLabelFunction :: LensLike' f (SingleAxis b v n) ([N (SingleAxis b v n)] -> (N (SingleAxis b v n), N (SingleAxis b v n)) -> [(N (SingleAxis b v n), String)]) #

tickLabelStyle :: LensLike' f (SingleAxis b v n) (Style (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

tickLabelGap :: LensLike' f (SingleAxis b v n) (N (SingleAxis b v n)) #

(TypeableFloat n, Renderable (Text n) b) => Default (SingleAxis b V2 n) 
Instance details

Defined in Plots.Axis

Methods

def :: SingleAxis b V2 n #

HasVisibility (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

visible :: Lens' (SingleAxis b v n) Bool #

hidden :: Lens' (SingleAxis b v n) Bool #

type N (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

type N (SingleAxis b v n) = n
type V (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

type V (SingleAxis b v n) = v

type family BaseSpace (c :: * -> *) :: * -> * #

This family is used so that we can say (Axis Polar) but use V2 for the underlying diagram.

Instances
type BaseSpace Complex 
Instance details

Defined in Plots.Axis

type BaseSpace Complex = V2
type BaseSpace V3 
Instance details

Defined in Plots.Axis

type BaseSpace V3 = V3
type BaseSpace V2 
Instance details

Defined in Plots.Axis

type BaseSpace V2 = V2
type BaseSpace Polar 
Instance details

Defined in Plots.Axis

type BaseSpace Polar = V2

data Axis b (c :: * -> *) n #

Axis is the data type that holds all the nessessary information to render a plot. Common LensLikes used for the axis (see haddock's instances for a more comprehensive list):

The following LensLikes can be used on the on all the axes by applying it the to Axis or can be used on a SingleAxis by using it in combination with a specific axis (like xAxis).

Plots are usually added to the axis using specific functions for that plots ('Plots.Types.Line.linePlot, barPlot). These functions use addPlotable to add the plot to the axis.

Instances
(BaseSpace c ~ V2, Settable f, Typeable n) => HasWedge f (Axis b c n) 
Instance details

Defined in Plots.Types.Pie

Methods

pieWedge :: LensLike' f (Axis b c n) (Wedge (N (Axis b c n))) #

wedgeOuterRadius :: LensLike' f (Axis b c n) (N (Axis b c n)) #

wedgeInnerRadius :: LensLike' f (Axis b c n) (N (Axis b c n)) #

wedgeOffset :: LensLike' f (Axis b c n) (N (Axis b c n)) #

wedgeWidth :: LensLike' f (Axis b c n) (Angle (N (Axis b c n))) #

wedgeDirection :: LensLike' f (Axis b c n) (Direction V2 (N (Axis b c n))) #

(Settable f, Typeable (BaseSpace c), Typeable n) => HasConnectingLine f (Axis b c n) 
Instance details

Defined in Plots.Types.Scatter

Methods

connectingLine :: LensLike' f (Axis b c n) Bool #

(Applicative f, Traversable c) => HasMajorTicks f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

majorTicks :: LensLike' f (Axis b c n) (MajorTicks (V (Axis b c n)) (N (Axis b c n))) #

majorTicksFunction :: LensLike' f (Axis b c n) ((N (Axis b c n), N (Axis b c n)) -> [N (Axis b c n)]) #

majorTicksAlignment :: LensLike' f (Axis b c n) TicksAlignment #

majorTicksLength :: LensLike' f (Axis b c n) (N (Axis b c n)) #

majorTicksStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

(Applicative f, Traversable c) => HasMinorTicks f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

minorTicks :: LensLike' f (Axis b c n) (MinorTicks (V (Axis b c n)) (N (Axis b c n))) #

minorTicksFunction :: LensLike' f (Axis b c n) ([N (Axis b c n)] -> (N (Axis b c n), N (Axis b c n)) -> [N (Axis b c n)]) #

minorTicksAlignment :: LensLike' f (Axis b c n) TicksAlignment #

minorTicksLength :: LensLike' f (Axis b c n) (N (Axis b c n)) #

minorTicksStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

(Applicative f, Traversable c) => HasTicks f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

bothTicks :: LensLike' f (Axis b c n) (Ticks (V (Axis b c n)) (N (Axis b c n))) #

(Applicative f, Traversable c) => HasMajorGridLines f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

majorGridLines :: LensLike' f (Axis b c n) (MajorGridLines (V (Axis b c n)) (N (Axis b c n))) #

majorGridLinesFunction :: LensLike' f (Axis b c n) (GridLineFunction (N (Axis b c n))) #

majorGridLinesStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

(Applicative f, Traversable c) => HasMinorGridLines f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

minorGridLines :: LensLike' f (Axis b c n) (MinorGridLines (V (Axis b c n)) (N (Axis b c n))) #

minorGridLinesFunction :: LensLike' f (Axis b c n) (GridLineFunction (N (Axis b c n))) #

minorGridLinesStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

(Applicative f, Traversable c) => HasGridLines f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

gridLines :: LensLike' f (Axis b c n) (GridLines (V (Axis b c n)) (N (Axis b c n))) #

(Applicative f, Traversable c) => HasAxisScaling f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

axisScaling :: LensLike' f (Axis b c n) (AxisScaling (N (Axis b c n))) #

scaleAspectRatio :: LensLike' f (Axis b c n) (Maybe (N (Axis b c n))) #

scaleMode :: LensLike' f (Axis b c n) ScaleMode #

logScale :: LensLike' f (Axis b c n) LogScale #

axisExtend :: LensLike' f (Axis b c n) (Extending (N (Axis b c n))) #

boundMin :: LensLike' f (Axis b c n) (Maybe (N (Axis b c n))) #

boundMax :: LensLike' f (Axis b c n) (Maybe (N (Axis b c n))) #

renderSize :: LensLike' f (Axis b c n) (Maybe (N (Axis b c n))) #

(Applicative f, Typeable b, Typeable (BaseSpace c), Typeable n, Typeable a) => HasScatterOptions f (Axis b c n) a 
Instance details

Defined in Plots.Types.Scatter

Methods

gscatterOptions :: LensLike' f (Axis b c n) (ScatterOptions (V (Axis b c n)) (N (Axis b c n)) a) #

scatterTransform :: LensLike' f (Axis b c n) (a -> Transformation (V (Axis b c n)) (N (Axis b c n))) #

scatterStyle :: LensLike' f (Axis b c n) (a -> Style (V (Axis b c n)) (N (Axis b c n))) #

scatterPosition :: LensLike' f (Axis b c n) (a -> Point (V (Axis b c n)) (N (Axis b c n))) #

(Applicative f, Traversable c) => HasAxisLabel f (Axis b c n) b 
Instance details

Defined in Plots.Axis

Methods

axisLabel :: LensLike' f (Axis b c n) (AxisLabel b (V (Axis b c n)) (N (Axis b c n))) #

axisLabelText :: LensLike' f (Axis b c n) String #

axisLabelTextFunction :: LensLike' f (Axis b c n) (TextFunction b (V (Axis b c n)) (N (Axis b c n))) #

axisLabelGap :: LensLike' f (Axis b c n) (N (Axis b c n)) #

axisLabelStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

axisLabelPosition :: LensLike' f (Axis b c n) AxisLabelPosition #

axisLabelPlacement :: LensLike' f (Axis b c n) AxisLabelPosition #

(Applicative f, Traversable c) => HasTickLabels f (Axis b c n) b 
Instance details

Defined in Plots.Axis

Methods

tickLabel :: LensLike' f (Axis b c n) (TickLabels b (V (Axis b c n)) (N (Axis b c n))) #

tickLabelTextFunction :: LensLike' f (Axis b c n) (TextFunction b (V (Axis b c n)) (N (Axis b c n))) #

tickLabelFunction :: LensLike' f (Axis b c n) ([N (Axis b c n)] -> (N (Axis b c n), N (Axis b c n)) -> [(N (Axis b c n), String)]) #

tickLabelStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

tickLabelGap :: LensLike' f (Axis b c n) (N (Axis b c n)) #

Settable f => HasPlotOptions f (Axis b c n) b 
Instance details

Defined in Plots.Axis

Methods

plotOptions :: LensLike' f (Axis b c n) (PlotOptions b (V (Axis b c n)) (N (Axis b c n))) #

plotName :: LensLike' f (Axis b c n) Name #

clipPlot :: LensLike' f (Axis b c n) Bool #

legendEntries :: LensLike' f (Axis b c n) [LegendEntry b (V (Axis b c n)) (N (Axis b c n))] #

plotTransform :: LensLike' f (Axis b c n) (Transformation (V (Axis b c n)) (N (Axis b c n))) #

plotVisible :: LensLike' f (Axis b c n) Bool #

Settable f => HasPlotStyle f (Axis b c n) b 
Instance details

Defined in Plots.Axis

Methods

plotStyle :: LensLike' f (Axis b c n) (PlotStyle b (V (Axis b c n)) (N (Axis b c n))) #

plotColour :: LensLike' f (Axis b c n) (Colour Double) #

plotColor :: LensLike' f (Axis b c n) (Colour Double) #

lineStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

lineStyleFunction :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) #

markerStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

markerStyleFunction :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) #

areaStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

areaStyleFunction :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) #

textStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

textStyleFunction :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) #

plotMarker :: LensLike' f (Axis b c n) (QDiagram b (V (Axis b c n)) (N (Axis b c n)) Any) #

plotStyles :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

plotStyleFunctions :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) #

HasColourBar (Axis b v n) b 
Instance details

Defined in Plots.Axis

Methods

colourBar :: Lens' (Axis b v n) (ColourBar b (N (Axis b v n))) #

colourBarDraw :: Lens' (Axis b v n) (ColourMap -> QDiagram b V2 (N (Axis b v n)) Any) #

colourBarWidth :: Lens' (Axis b v n) (N (Axis b v n)) #

colourBarLengthFunction :: Lens' (Axis b v n) (N (Axis b v n) -> N (Axis b v n)) #

colourBarGap :: Lens' (Axis b v n) (N (Axis b v n)) #

colourBarStyle :: Lens' (Axis b v n) (Style V2 (N (Axis b v n))) #

HasTitle (Axis b c n) b 
Instance details

Defined in Plots.Axis

Methods

title :: Lens' (Axis b c n) (Title b (V (Axis b c n)) (N (Axis b c n))) #

titleText :: Lens' (Axis b c n) String #

titleStyle :: Lens' (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

titlePlacement :: Lens' (Axis b c n) Placement #

titleGap :: Lens' (Axis b c n) (N (Axis b c n)) #

HasLegend (Axis b c n) b 
Instance details

Defined in Plots.Axis

Methods

legend :: Lens' (Axis b c n) (Legend b (N (Axis b c n))) #

legendPlacement :: Lens' (Axis b c n) Placement #

legendGap :: Lens' (Axis b c n) (N (Axis b c n)) #

legendStyle :: Lens' (Axis b c n) (Style V2 (N (Axis b c n))) #

legendSpacing :: Lens' (Axis b c n) (N (Axis b c n)) #

legendTextWidth :: Lens' (Axis b c n) (N (Axis b c n)) #

legendTextFunction :: Lens' (Axis b c n) (String -> QDiagram b V2 (N (Axis b c n)) Any) #

legendTextStyle :: Lens' (Axis b c n) (Style V2 (N (Axis b c n))) #

legendOrientation :: Lens' (Axis b c n) Orientation #

HasAxisStyle (Axis b v n) b 
Instance details

Defined in Plots.Axis

Methods

axisStyle :: Lens' (Axis b v n) (AxisStyle b (V (Axis b v n)) (N (Axis b v n))) #

axisColourMap :: Lens' (Axis b v n) ColourMap #

axisStyles :: IndexedTraversal' Int (Axis b v n) (PlotStyle b (V (Axis b v n)) (N (Axis b v n))) #

type N (Axis b v n) 
Instance details

Defined in Plots.Axis

type N (Axis b v n) = n
type V (Axis b v n) 
Instance details

Defined in Plots.Axis

type V (Axis b v n) = BaseSpace v
type MainOpts (Axis b V2 n) 
Instance details

Defined in Plots.Axis.Render

type MainOpts (Axis b V2 n) = MainOpts (QDiagram b V2 n Any)
type MainOpts (Axis b Polar n) 
Instance details

Defined in Plots.Axis.Render

type MainOpts (Axis b Polar n) = MainOpts (QDiagram b V2 n Any)
type Args (Axis b v n) 
Instance details

Defined in Plots.Axis.Render

type Args (Axis b v n) = ()
type ResultOf (Axis b v n) 
Instance details

Defined in Plots.Axis.Render

type ResultOf (Axis b v n) = Axis b v n

pathColourBar :: (TypeableFloat n, Renderable (Path V2 n) b) => Int -> ColourMap -> QDiagram b V2 n Any #

Construct a colour bar made up of n solid square paths. The final diagram is 1 by 1, with origin at the middle of the left side. This can be used as the colourBarDraw function.

gradientColourBar :: (TypeableFloat n, Renderable (Path V2 n) b) => ColourMap -> QDiagram b V2 n Any #

The colour bar generated by a gradient texture. The final diagram is 1 by 1, with origin at the middle of the left side. This can be used as the colourBarDraw function.

This may not be supported by all backends.

renderColourBar #

Arguments

:: (TypeableFloat n, Renderable (Path V2 n) b) 
=> ColourBar b n

options for colour bar

-> ColourMap

map to use

-> (n, n)

bounds of the values on the colour bar

-> n

length of the colour bar

-> QDiagram b V2 n Any 

Render a colour bar by it's self at a given width. Note this ignores colourBarGap and colourBarLengthFunction.

addColourBar #

Arguments

:: (TypeableFloat n, Renderable (Path V2 n) b) 
=> BoundingBox V2 n

bounding box to place against

-> ColourBar b n 
-> ColourMap 
-> (n, n) 
-> QDiagram b V2 n Any 

Add a colour bar to an object, using the bounding box for the object.

defColourBar :: (Renderable (Text n) b, Renderable (Path V2 n) b, TypeableFloat n) => ColourBar b n #

The default colour bar.

data ColourBar b n #

Options for drawing a colour bar. Note that for an axis, the ColourMap is stored in the AxisStyle. These options are for other aspects of the bar, not the colours used.

Instances
Functor f => HasMajorTicks f (ColourBar b n) 
Instance details

Defined in Plots.Axis.ColourBar

Methods

majorTicks :: LensLike' f (ColourBar b n) (MajorTicks (V (ColourBar b n)) (N (ColourBar b n))) #

majorTicksFunction :: LensLike' f (ColourBar b n) ((N (ColourBar b n), N (ColourBar b n)) -> [N (ColourBar b n)]) #

majorTicksAlignment :: LensLike' f (ColourBar b n) TicksAlignment #

majorTicksLength :: LensLike' f (ColourBar b n) (N (ColourBar b n)) #

majorTicksStyle :: LensLike' f (ColourBar b n) (Style (V (ColourBar b n)) (N (ColourBar b n))) #

Functor f => HasTickLabels f (ColourBar b n) b 
Instance details

Defined in Plots.Axis.ColourBar

Methods

tickLabel :: LensLike' f (ColourBar b n) (TickLabels b (V (ColourBar b n)) (N (ColourBar b n))) #

tickLabelTextFunction :: LensLike' f (ColourBar b n) (TextFunction b (V (ColourBar b n)) (N (ColourBar b n))) #

tickLabelFunction :: LensLike' f (ColourBar b n) ([N (ColourBar b n)] -> (N (ColourBar b n), N (ColourBar b n)) -> [(N (ColourBar b n), String)]) #

tickLabelStyle :: LensLike' f (ColourBar b n) (Style (V (ColourBar b n)) (N (ColourBar b n))) #

tickLabelGap :: LensLike' f (ColourBar b n) (N (ColourBar b n)) #

HasVisibility (ColourBar b n) 
Instance details

Defined in Plots.Axis.ColourBar

HasOrientation (ColourBar b n) 
Instance details

Defined in Plots.Axis.ColourBar

HasGap (ColourBar b n) 
Instance details

Defined in Plots.Axis.ColourBar

Methods

gap :: Lens' (ColourBar b n) (N (ColourBar b n)) #

HasPlacement (ColourBar b n) 
Instance details

Defined in Plots.Axis.ColourBar

Typeable n => HasStyle (ColourBar b n) 
Instance details

Defined in Plots.Axis.ColourBar

Methods

applyStyle :: Style (V (ColourBar b n)) (N (ColourBar b n)) -> ColourBar b n -> ColourBar b n

HasColourBar (ColourBar b n) b 
Instance details

Defined in Plots.Axis.ColourBar

Methods

colourBar :: Lens' (ColourBar b n) (ColourBar b (N (ColourBar b n))) #

colourBarDraw :: Lens' (ColourBar b n) (ColourMap -> QDiagram b V2 (N (ColourBar b n)) Any) #

colourBarWidth :: Lens' (ColourBar b n) (N (ColourBar b n)) #

colourBarLengthFunction :: Lens' (ColourBar b n) (N (ColourBar b n) -> N (ColourBar b n)) #

colourBarGap :: Lens' (ColourBar b n) (N (ColourBar b n)) #

colourBarStyle :: Lens' (ColourBar b n) (Style V2 (N (ColourBar b n))) #

type N (ColourBar b n) 
Instance details

Defined in Plots.Axis.ColourBar

type N (ColourBar b n) = n
type V (ColourBar b n) 
Instance details

Defined in Plots.Axis.ColourBar

type V (ColourBar b n) = V2

class HasColourBar a b | a -> b where #

Minimal complete definition

colourBar

Methods

colourBar :: Lens' a (ColourBar b (N a)) #

Lens onto the ColourBar.

colourBarDraw :: Lens' a (ColourMap -> QDiagram b V2 (N a) Any) #

How to draw the colour bar. Expects a 1 by 1 box with the gradient going from left to right, without an outline with origin in the middle of the left side. See gradientColourBar and pathColourBar.

The colour map this function recieves it given by axisColourMap from Plots.Style

Default is gradientColourBar.

colourBarWidth :: Lens' a (N a) #

The width (orthogonal to the colour bar direction) of the colour bar.

Default is 20.

colourBarLengthFunction :: Lens' a (N a -> N a) #

Set the length of the colour bar given the length of the axis the colour bar is aligned to.

Default is id.

colourBarGap :: Lens' a (N a) #

Gap between the axis and the colour bar (if rendered with an axis).

Default is 20.

colourBarStyle :: Lens' a (Style V2 (N a)) #

Style used for the outline of a colour bar.

Instances
HasColourBar (ColourBar b n) b 
Instance details

Defined in Plots.Axis.ColourBar

Methods

colourBar :: Lens' (ColourBar b n) (ColourBar b (N (ColourBar b n))) #

colourBarDraw :: Lens' (ColourBar b n) (ColourMap -> QDiagram b V2 (N (ColourBar b n)) Any) #

colourBarWidth :: Lens' (ColourBar b n) (N (ColourBar b n)) #

colourBarLengthFunction :: Lens' (ColourBar b n) (N (ColourBar b n) -> N (ColourBar b n)) #

colourBarGap :: Lens' (ColourBar b n) (N (ColourBar b n)) #

colourBarStyle :: Lens' (ColourBar b n) (Style V2 (N (ColourBar b n))) #

HasColourBar (Axis b v n) b 
Instance details

Defined in Plots.Axis

Methods

colourBar :: Lens' (Axis b v n) (ColourBar b (N (Axis b v n))) #

colourBarDraw :: Lens' (Axis b v n) (ColourMap -> QDiagram b V2 (N (Axis b v n)) Any) #

colourBarWidth :: Lens' (Axis b v n) (N (Axis b v n)) #

colourBarLengthFunction :: Lens' (Axis b v n) (N (Axis b v n) -> N (Axis b v n)) #

colourBarGap :: Lens' (Axis b v n) (N (Axis b v n)) #

colourBarStyle :: Lens' (Axis b v n) (Style V2 (N (Axis b v n))) #

majorTicksHelper #

Arguments

:: (RealFrac n, Floating n) 
=> [n]

Allowed numbers (up to powers of 10)

-> n

desired number of ticks

-> (n, n)

bounds

-> [n]

tick positions

Choose ticks whose step size is a multiple of 10 of the allowed numbers and tries to match the number of desired ticks.

Note that the resulting tick positions may go out of the range of the bounds. This is so the minor ticks can be chosen correctly if a tick doesn't end exactly on a bound. When we render, we ignore all ticks outside the bounds.

minorTicksHelper #

Arguments

:: Fractional n 
=> Int

Number of minor ticks between each major tick

-> [n]

Positions of major ticks

-> (n, n)

Bounds

-> [n]

Minor tick positions

Place n linear spaced ticks between each major tick.

logMajorTicks :: (RealFrac n, Floating n) => n -> (n, n) -> [n] #

Place n ticks at powers of 10 on the axis.

linearMajorTicks :: (RealFrac n, Floating n) => n -> (n, n) -> [n] #

Ticks whose value ends in 1, 0.5, 0.25, 0.2 (*10^n).

minorTickPositions :: (HasMinorTicks f a, Settable f) => LensLike' f a [N a] #

Setter over the final positions the major ticks. This is not as general as minorTicksFunction because you don't have access to the bounds but it can be useful when you know exactly what ticks you want to add or modify existing tick positions.

majorTickPositions :: (HasMajorTicks f a, Settable f) => LensLike' f a [N a] #

Setter over the final positions the major ticks. This is not as general as majorTicksFunction because you don't have access to the bounds but it can be useful when you know exactly what ticks you want to add or modify existing tick positions.

hideTicks :: HasTicks Identity a => a -> a #

Hides the Minor ticks when trying to render something. This can be used on multiple types:

hideTicks :: Axis b c n       -> Axis b c n
hideTicks :: SingleAxis b v n -> SingleAxis b v n
hideTicks :: Ticks v n        -> Ticks v n
hideTicks :: MinorTicks v n   -> MinorTicks v n

ticksVisible :: (HasTicks f a, Applicative f) => LensLike' f a Bool #

Traversal over the visibility of both major and minor ticks.

ticksStyle :: (HasTicks f a, Applicative f) => LensLike' f a (Style (V a) (N a)) #

Traversal over both major and minor tick styles.

ticksAlign :: (HasTicks f a, Applicative f) => LensLike' f a TicksAlignment #

Traversal over both major and minor tick alignment.

outsideTicks :: TicksAlignment #

Align the ticks to be outside a box axis.

insideTicks :: TicksAlignment #

Align the ticks to be inside a box axis.

centreTicks :: TicksAlignment #

Set the tick to be in the centre of the axis with total length of the corresponding tick length.

autoTicks :: TicksAlignment #

Set the tick type depending on the axis line position. centreTick for middleAxis, insideTick for everything else.

data TicksAlignment #

Set the portion of the tick above and below the axis.

data MajorTicks (v :: * -> *) n #

The big ticks on the axis line.

Instances
HasMajorTicks f (MajorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

TypeableFloat n => Default (MajorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

def :: MajorTicks v n #

HasVisibility (MajorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

type N (MajorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

type N (MajorTicks v n) = n
type V (MajorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

type V (MajorTicks v n) = v

class HasMajorTicks (f :: * -> *) a where #

Class of things that have a MajorTicks.

Minimal complete definition

majorTicks

Methods

majorTicks :: LensLike' f a (MajorTicks (V a) (N a)) #

Lens onto the MajorTicks of something.

majorTicksFunction :: LensLike' f a ((N a, N a) -> [N a]) #

The function used to place ticks for this axis, given the bounds of the axis. The result of these major ticks are also used as guides for MinorTicks, MajorGridLines and MinorGridLines.

Default is linearMinorTicks 5.

majorTicksAlignment :: LensLike' f a TicksAlignment #

Alignment of the major ticks. Choose between autoTicks (default), centreTicks, insideTicks or outsideTicks.

majorTicksLength :: LensLike' f a (N a) #

The total length the major ticks.

Default is 7.

majorTicksStyle :: LensLike' f a (Style (V a) (N a)) #

The style used to render the major ticks.

Default is lwO 0.6 mempty (subject to change).

Instances
Functor f => HasMajorTicks f (Ticks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

majorTicks :: LensLike' f (Ticks v n) (MajorTicks (V (Ticks v n)) (N (Ticks v n))) #

majorTicksFunction :: LensLike' f (Ticks v n) ((N (Ticks v n), N (Ticks v n)) -> [N (Ticks v n)]) #

majorTicksAlignment :: LensLike' f (Ticks v n) TicksAlignment #

majorTicksLength :: LensLike' f (Ticks v n) (N (Ticks v n)) #

majorTicksStyle :: LensLike' f (Ticks v n) (Style (V (Ticks v n)) (N (Ticks v n))) #

HasMajorTicks f (MajorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

Functor f => HasMajorTicks f (ColourBar b n) 
Instance details

Defined in Plots.Axis.ColourBar

Methods

majorTicks :: LensLike' f (ColourBar b n) (MajorTicks (V (ColourBar b n)) (N (ColourBar b n))) #

majorTicksFunction :: LensLike' f (ColourBar b n) ((N (ColourBar b n), N (ColourBar b n)) -> [N (ColourBar b n)]) #

majorTicksAlignment :: LensLike' f (ColourBar b n) TicksAlignment #

majorTicksLength :: LensLike' f (ColourBar b n) (N (ColourBar b n)) #

majorTicksStyle :: LensLike' f (ColourBar b n) (Style (V (ColourBar b n)) (N (ColourBar b n))) #

Functor f => HasMajorTicks f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

majorTicks :: LensLike' f (SingleAxis b v n) (MajorTicks (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

majorTicksFunction :: LensLike' f (SingleAxis b v n) ((N (SingleAxis b v n), N (SingleAxis b v n)) -> [N (SingleAxis b v n)]) #

majorTicksAlignment :: LensLike' f (SingleAxis b v n) TicksAlignment #

majorTicksLength :: LensLike' f (SingleAxis b v n) (N (SingleAxis b v n)) #

majorTicksStyle :: LensLike' f (SingleAxis b v n) (Style (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

(Applicative f, Traversable c) => HasMajorTicks f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

majorTicks :: LensLike' f (Axis b c n) (MajorTicks (V (Axis b c n)) (N (Axis b c n))) #

majorTicksFunction :: LensLike' f (Axis b c n) ((N (Axis b c n), N (Axis b c n)) -> [N (Axis b c n)]) #

majorTicksAlignment :: LensLike' f (Axis b c n) TicksAlignment #

majorTicksLength :: LensLike' f (Axis b c n) (N (Axis b c n)) #

majorTicksStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

data MinorTicks (v :: * -> *) n #

The small ticks on the axis line.

Instances
HasMinorTicks f (MinorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

minorTicks :: LensLike' f (MinorTicks v n) (MinorTicks (V (MinorTicks v n)) (N (MinorTicks v n))) #

minorTicksFunction :: LensLike' f (MinorTicks v n) ([N (MinorTicks v n)] -> (N (MinorTicks v n), N (MinorTicks v n)) -> [N (MinorTicks v n)]) #

minorTicksAlignment :: LensLike' f (MinorTicks v n) TicksAlignment #

minorTicksLength :: LensLike' f (MinorTicks v n) (N (MinorTicks v n)) #

minorTicksStyle :: LensLike' f (MinorTicks v n) (Style (V (MinorTicks v n)) (N (MinorTicks v n))) #

TypeableFloat n => Default (MinorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

def :: MinorTicks v n #

HasVisibility (MinorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

type N (MinorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

type N (MinorTicks v n) = n
type V (MinorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

type V (MinorTicks v n) = v

class HasMinorTicks (f :: * -> *) a where #

Class of things that have a single MinorTicks.

Minimal complete definition

minorTicks

Methods

minorTicks :: LensLike' f a (MinorTicks (V a) (N a)) #

Lens onto the MinorTicks of something.

minorTicksFunction :: LensLike' f a ([N a] -> (N a, N a) -> [N a]) #

The function used to place ticks for this axis, given the result of majorTicksFunction and the bounds of the axis.

Default is linearMinorTicks 3.

minorTicksAlignment :: LensLike' f a TicksAlignment #

Alignment of the minor ticks. Choose between autoTicks (default), centreTicks, insideTicks or outsideTicks.

minorTicksLength :: LensLike' f a (N a) #

The total length the minor ticks.

Default is 3.

minorTicksStyle :: LensLike' f a (Style (V a) (N a)) #

The style used to render the minor ticks.

Default is lwO 0.4 mempty (subject to change).

Instances
Functor f => HasMinorTicks f (Ticks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

minorTicks :: LensLike' f (Ticks v n) (MinorTicks (V (Ticks v n)) (N (Ticks v n))) #

minorTicksFunction :: LensLike' f (Ticks v n) ([N (Ticks v n)] -> (N (Ticks v n), N (Ticks v n)) -> [N (Ticks v n)]) #

minorTicksAlignment :: LensLike' f (Ticks v n) TicksAlignment #

minorTicksLength :: LensLike' f (Ticks v n) (N (Ticks v n)) #

minorTicksStyle :: LensLike' f (Ticks v n) (Style (V (Ticks v n)) (N (Ticks v n))) #

HasMinorTicks f (MinorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

minorTicks :: LensLike' f (MinorTicks v n) (MinorTicks (V (MinorTicks v n)) (N (MinorTicks v n))) #

minorTicksFunction :: LensLike' f (MinorTicks v n) ([N (MinorTicks v n)] -> (N (MinorTicks v n), N (MinorTicks v n)) -> [N (MinorTicks v n)]) #

minorTicksAlignment :: LensLike' f (MinorTicks v n) TicksAlignment #

minorTicksLength :: LensLike' f (MinorTicks v n) (N (MinorTicks v n)) #

minorTicksStyle :: LensLike' f (MinorTicks v n) (Style (V (MinorTicks v n)) (N (MinorTicks v n))) #

Functor f => HasMinorTicks f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

minorTicks :: LensLike' f (SingleAxis b v n) (MinorTicks (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

minorTicksFunction :: LensLike' f (SingleAxis b v n) ([N (SingleAxis b v n)] -> (N (SingleAxis b v n), N (SingleAxis b v n)) -> [N (SingleAxis b v n)]) #

minorTicksAlignment :: LensLike' f (SingleAxis b v n) TicksAlignment #

minorTicksLength :: LensLike' f (SingleAxis b v n) (N (SingleAxis b v n)) #

minorTicksStyle :: LensLike' f (SingleAxis b v n) (Style (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

(Applicative f, Traversable c) => HasMinorTicks f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

minorTicks :: LensLike' f (Axis b c n) (MinorTicks (V (Axis b c n)) (N (Axis b c n))) #

minorTicksFunction :: LensLike' f (Axis b c n) ([N (Axis b c n)] -> (N (Axis b c n), N (Axis b c n)) -> [N (Axis b c n)]) #

minorTicksAlignment :: LensLike' f (Axis b c n) TicksAlignment #

minorTicksLength :: LensLike' f (Axis b c n) (N (Axis b c n)) #

minorTicksStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

data Ticks (v :: * -> *) n #

Both MajorTicks and MinorTicks together.

Instances
Functor f => HasMajorTicks f (Ticks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

majorTicks :: LensLike' f (Ticks v n) (MajorTicks (V (Ticks v n)) (N (Ticks v n))) #

majorTicksFunction :: LensLike' f (Ticks v n) ((N (Ticks v n), N (Ticks v n)) -> [N (Ticks v n)]) #

majorTicksAlignment :: LensLike' f (Ticks v n) TicksAlignment #

majorTicksLength :: LensLike' f (Ticks v n) (N (Ticks v n)) #

majorTicksStyle :: LensLike' f (Ticks v n) (Style (V (Ticks v n)) (N (Ticks v n))) #

Functor f => HasMinorTicks f (Ticks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

minorTicks :: LensLike' f (Ticks v n) (MinorTicks (V (Ticks v n)) (N (Ticks v n))) #

minorTicksFunction :: LensLike' f (Ticks v n) ([N (Ticks v n)] -> (N (Ticks v n), N (Ticks v n)) -> [N (Ticks v n)]) #

minorTicksAlignment :: LensLike' f (Ticks v n) TicksAlignment #

minorTicksLength :: LensLike' f (Ticks v n) (N (Ticks v n)) #

minorTicksStyle :: LensLike' f (Ticks v n) (Style (V (Ticks v n)) (N (Ticks v n))) #

Functor f => HasTicks f (Ticks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

bothTicks :: LensLike' f (Ticks v n) (Ticks (V (Ticks v n)) (N (Ticks v n))) #

TypeableFloat n => Default (Ticks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

def :: Ticks v n #

Typeable n => HasStyle (Ticks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

applyStyle :: Style (V (Ticks v n)) (N (Ticks v n)) -> Ticks v n -> Ticks v n

type N (Ticks v n) 
Instance details

Defined in Plots.Axis.Ticks

type N (Ticks v n) = n
type V (Ticks v n) 
Instance details

Defined in Plots.Axis.Ticks

type V (Ticks v n) = v

class (HasMinorTicks f a, HasMajorTicks f a) => HasTicks (f :: * -> *) a where #

Class of things with both MajorTicks and MinorTicks.

Minimal complete definition

bothTicks

Methods

bothTicks :: LensLike' f a (Ticks (V a) (N a)) #

Instances
Functor f => HasTicks f (Ticks v n) 
Instance details

Defined in Plots.Axis.Ticks

Methods

bothTicks :: LensLike' f (Ticks v n) (Ticks (V (Ticks v n)) (N (Ticks v n))) #

Functor f => HasTicks f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

bothTicks :: LensLike' f (SingleAxis b v n) (Ticks (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

(Applicative f, Traversable c) => HasTicks f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

bothTicks :: LensLike' f (Axis b c n) (Ticks (V (Axis b c n)) (N (Axis b c n))) #

gridLinesStyle :: (HasGridLines f a, Applicative f) => LensLike' f a (Style (V a) (N a)) #

Traversal over both the major and minor grid styles. This can be used at seversal levels in the Axis:

showGridLines :: (HasGridLines Identity a, MonadState a m) => m () #

Show both major and minor grid lines.

showGridLines :: Axis b c n       -> Axis b c n
showGridLines :: SingleAxis b c n -> SingleAxis b c n
showGridLines :: GridLines b c n  -> GirdLines b c n

hideGridLines :: (HasGridLines Identity a, MonadState a m) => m () #

Hide both major and minor grid lines.

hideGridLines :: Axis b c n       -> Axis b c n
hideGridLines :: SingleAxis b c n -> SingleAxis b c n
hideGridLines :: GridLines b c n  -> GirdLines b c n

gridLinesVisible :: (HasGridLines f a, Applicative f) => LensLike' f a Bool #

Traversal over both the major and minor grid styles.

gridLinesVisible :: Traversal' (Axis b c n) Bool
gridLinesVisible :: Traversal' (SingleAxis b v n) Bool
gridLinesVisible :: Traversal' (GridLines v n) Bool

emptyGridLineFunction :: GridLineFunction n #

The GridLineFunction such that no grid lines appear.

See hideGridLines, majorGridLineVisible or minorGridLineVisible if you just want to hide the grid lines.

onTicksGridLineFunction :: GridLineFunction n #

Place grid lines at the same position as the respective ticks. This is the Default.

type GridLineFunction n = [n] -> (n, n) -> [n] #

A grid line function takes the positions of the respective ticks (minor ticks for minor grid lines, major ticks for major grid lines) and the bounds of the axis and returns the positions of the grid lines.

These functions are used in conjuction with majorGridLineFunction and minorGridLineFunction to control how the lines are drawn.

data MajorGridLines (v :: * -> *) n #

Instances
HasMajorGridLines f (MajorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

(Typeable n, Floating n) => Default (MajorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Methods

def :: MajorGridLines v n #

HasVisibility (MajorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Typeable n => HasStyle (MajorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Methods

applyStyle :: Style (V (MajorGridLines v n)) (N (MajorGridLines v n)) -> MajorGridLines v n -> MajorGridLines v n

type N (MajorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

type N (MajorGridLines v n) = n
type V (MajorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

type V (MajorGridLines v n) = v

class HasMajorGridLines (f :: * -> *) a where #

Minimal complete definition

majorGridLines

Methods

majorGridLines :: LensLike' f a (MajorGridLines (V a) (N a)) #

The options for how to draw the grid lines. This can be used on various levels of the axis:

majorGridLines :: Traversal' (Axis b c n)       (GridLines (BaseSpace c) n)
majorGridLines :: Lens'      (SingleAxis b v n) (GridLines v n)
majorGridLines :: Lens'      (GridLines v n)    (GridLines v n)

majorGridLinesFunction :: LensLike' f a (GridLineFunction (N a)) #

The function to calculate location of the major grid lines given location of the major ticks and bounds.

majorGridLinesStyle :: LensLike' f a (Style (V a) (N a)) #

The style applied to the major grid lines.

Instances
HasMajorGridLines f (MajorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Functor f => HasMajorGridLines f (GridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Functor f => HasMajorGridLines f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

majorGridLines :: LensLike' f (SingleAxis b v n) (MajorGridLines (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

majorGridLinesFunction :: LensLike' f (SingleAxis b v n) (GridLineFunction (N (SingleAxis b v n))) #

majorGridLinesStyle :: LensLike' f (SingleAxis b v n) (Style (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

(Applicative f, Traversable c) => HasMajorGridLines f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

majorGridLines :: LensLike' f (Axis b c n) (MajorGridLines (V (Axis b c n)) (N (Axis b c n))) #

majorGridLinesFunction :: LensLike' f (Axis b c n) (GridLineFunction (N (Axis b c n))) #

majorGridLinesStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

data MinorGridLines (v :: * -> *) n #

Instances
HasMinorGridLines f (MinorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

(Typeable n, Floating n) => Default (MinorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Methods

def :: MinorGridLines v n #

HasVisibility (MinorGridLines v n)

Hidden by default.

Instance details

Defined in Plots.Axis.Grid

Typeable n => HasStyle (MinorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Methods

applyStyle :: Style (V (MinorGridLines v n)) (N (MinorGridLines v n)) -> MinorGridLines v n -> MinorGridLines v n

type N (MinorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

type N (MinorGridLines v n) = n
type V (MinorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

type V (MinorGridLines v n) = v

class HasMinorGridLines (f :: * -> *) a where #

Minimal complete definition

minorGridLines

Methods

minorGridLines :: LensLike' f a (MinorGridLines (V a) (N a)) #

The options for how to draw the grid lines. This can be used on various levels of the axis:

minorGridLines :: Traversal' (Axis b c n)       (GridLines (BaseSpace c) n)
minorGridLines :: Lens'      (SingleAxis b v n) (GridLines v n)
minorGridLines :: Lens'      (GridLines v n)    (GridLines v n)

minorGridLinesFunction :: LensLike' f a (GridLineFunction (N a)) #

The function to calculate location of the minor grid lines given location of the minor ticks and bounds.

minorGridLinesStyle :: LensLike' f a (Style (V a) (N a)) #

The style applied to the minor grid lines.

Instances
HasMinorGridLines f (MinorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Functor f => HasMinorGridLines f (GridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Functor f => HasMinorGridLines f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

minorGridLines :: LensLike' f (SingleAxis b v n) (MinorGridLines (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

minorGridLinesFunction :: LensLike' f (SingleAxis b v n) (GridLineFunction (N (SingleAxis b v n))) #

minorGridLinesStyle :: LensLike' f (SingleAxis b v n) (Style (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

(Applicative f, Traversable c) => HasMinorGridLines f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

minorGridLines :: LensLike' f (Axis b c n) (MinorGridLines (V (Axis b c n)) (N (Axis b c n))) #

minorGridLinesFunction :: LensLike' f (Axis b c n) (GridLineFunction (N (Axis b c n))) #

minorGridLinesStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

data GridLines (v :: * -> *) n #

Type holding infomation about both major and minor grid lines.

Instances
Functor f => HasMajorGridLines f (GridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Functor f => HasMinorGridLines f (GridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Functor f => HasGridLines f (GridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Methods

gridLines :: LensLike' f (GridLines v n) (GridLines (V (GridLines v n)) (N (GridLines v n))) #

(Typeable n, Floating n) => Default (GridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Methods

def :: GridLines v n #

Typeable n => HasStyle (GridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Methods

applyStyle :: Style (V (GridLines v n)) (N (GridLines v n)) -> GridLines v n -> GridLines v n

type N (GridLines v n) 
Instance details

Defined in Plots.Axis.Grid

type N (GridLines v n) = n
type V (GridLines v n) 
Instance details

Defined in Plots.Axis.Grid

type V (GridLines v n) = v

class (HasMinorGridLines f a, HasMajorGridLines f a) => HasGridLines (f :: * -> *) a where #

Minimal complete definition

gridLines

Methods

gridLines :: LensLike' f a (GridLines (V a) (N a)) #

Instances
Functor f => HasGridLines f (GridLines v n) 
Instance details

Defined in Plots.Axis.Grid

Methods

gridLines :: LensLike' f (GridLines v n) (GridLines (V (GridLines v n)) (N (GridLines v n))) #

Functor f => HasGridLines f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

gridLines :: LensLike' f (SingleAxis b v n) (GridLines (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

(Applicative f, Traversable c) => HasGridLines f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

gridLines :: LensLike' f (Axis b c n) (GridLines (V (Axis b c n)) (N (Axis b c n))) #

atMajorTicks :: (n -> String) -> [n] -> (n, n) -> [(n, String)] #

Make a TickLabelFunction by specifying how to draw a single label from a position on the axis.

tickLabelPositions :: (HasTickLabels f a b, Settable f) => LensLike' f a [(N a, String)] #

Setter over the final positions the major ticks. This is not as general as minorTicksFunction because you don't have access to the bounds but it can be useful when you know exactly what ticks you want to add or modify existing tick positions.

type TextFunction b (v :: * -> *) n = TextAlignment n -> String -> QDiagram b v n Any #

Function to render the axis label from a string. This is very basic now and will be replace by a more sophisticated system.

data AxisLabelPosition #

The position of the AxisLabel along the axis.

data AxisLabelPlacement #

Whether the AxisLabel should be inside or ouside the axis.

data AxisLabel b (v :: * -> *) n #

Instances
HasAxisLabel f (AxisLabel b v n) b 
Instance details

Defined in Plots.Axis.Labels

(TypeableFloat n, Renderable (Text n) b) => Default (AxisLabel b V2 n) 
Instance details

Defined in Plots.Axis.Labels

Methods

def :: AxisLabel b V2 n #

HasVisibility (AxisLabel b v n) 
Instance details

Defined in Plots.Axis.Labels

Methods

visible :: Lens' (AxisLabel b v n) Bool #

hidden :: Lens' (AxisLabel b v n) Bool #

HasGap (AxisLabel b v n) 
Instance details

Defined in Plots.Axis.Labels

Methods

gap :: Lens' (AxisLabel b v n) (N (AxisLabel b v n)) #

Typeable n => HasStyle (AxisLabel b v n) 
Instance details

Defined in Plots.Axis.Labels

Methods

applyStyle :: Style (V (AxisLabel b v n)) (N (AxisLabel b v n)) -> AxisLabel b v n -> AxisLabel b v n

type N (AxisLabel b v n) 
Instance details

Defined in Plots.Axis.Labels

type N (AxisLabel b v n) = n
type V (AxisLabel b v n) 
Instance details

Defined in Plots.Axis.Labels

type V (AxisLabel b v n) = v

class HasAxisLabel (f :: * -> *) a b | a -> b where #

Minimal complete definition

axisLabel

Methods

axisLabel :: LensLike' f a (AxisLabel b (V a) (N a)) #

The options for the label of the axis. This can be used on various levels of the axis:

axisLabel :: Traversal' (Axis b c n)       (AxisLabel (BaseSpace c) n)
axisLabel :: Lens'      (SingleAxis b v n) (AxisLabel v n)
axisLabel :: Lens'      (AxisLabel v n)    (AxisLabel v n)

axisLabelText :: LensLike' f a String #

The text to use when labeling the axis.

axisLabelTextFunction :: LensLike' f a (TextFunction b (V a) (N a)) #

The TextFunction to render the text of the axis label.

axisLabelGap :: LensLike' f a (N a) #

The gap between the axis and the labels, in the direction corresponding to the axisLabelPosition.

axisLabelStyle :: LensLike' f a (Style (V a) (N a)) #

The Style to use on the rendered text.

axisLabelPosition :: LensLike' f a AxisLabelPosition #

The position the label will be placed parallel the axis.

axisLabelPlacement :: LensLike' f a AxisLabelPosition #

Whether the axis label should be placed inside or outside the axis.

Instances
HasAxisLabel f (AxisLabel b v n) b 
Instance details

Defined in Plots.Axis.Labels

Functor f => HasAxisLabel f (SingleAxis b v n) b 
Instance details

Defined in Plots.Axis

(Applicative f, Traversable c) => HasAxisLabel f (Axis b c n) b 
Instance details

Defined in Plots.Axis

Methods

axisLabel :: LensLike' f (Axis b c n) (AxisLabel b (V (Axis b c n)) (N (Axis b c n))) #

axisLabelText :: LensLike' f (Axis b c n) String #

axisLabelTextFunction :: LensLike' f (Axis b c n) (TextFunction b (V (Axis b c n)) (N (Axis b c n))) #

axisLabelGap :: LensLike' f (Axis b c n) (N (Axis b c n)) #

axisLabelStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

axisLabelPosition :: LensLike' f (Axis b c n) AxisLabelPosition #

axisLabelPlacement :: LensLike' f (Axis b c n) AxisLabelPosition #

data TickLabels b (v :: * -> *) n #

Instances
HasTickLabels f (TickLabels b v n) b 
Instance details

Defined in Plots.Axis.Labels

Methods

tickLabel :: LensLike' f (TickLabels b v n) (TickLabels b (V (TickLabels b v n)) (N (TickLabels b v n))) #

tickLabelTextFunction :: LensLike' f (TickLabels b v n) (TextFunction b (V (TickLabels b v n)) (N (TickLabels b v n))) #

tickLabelFunction :: LensLike' f (TickLabels b v n) ([N (TickLabels b v n)] -> (N (TickLabels b v n), N (TickLabels b v n)) -> [(N (TickLabels b v n), String)]) #

tickLabelStyle :: LensLike' f (TickLabels b v n) (Style (V (TickLabels b v n)) (N (TickLabels b v n))) #

tickLabelGap :: LensLike' f (TickLabels b v n) (N (TickLabels b v n)) #

(TypeableFloat n, Renderable (Text n) b) => Default (TickLabels b V2 n) 
Instance details

Defined in Plots.Axis.Labels

Methods

def :: TickLabels b V2 n #

HasVisibility (TickLabels b v n) 
Instance details

Defined in Plots.Axis.Labels

Methods

visible :: Lens' (TickLabels b v n) Bool #

hidden :: Lens' (TickLabels b v n) Bool #

HasGap (TickLabels b v n) 
Instance details

Defined in Plots.Axis.Labels

Methods

gap :: Lens' (TickLabels b v n) (N (TickLabels b v n)) #

type N (TickLabels b v n) 
Instance details

Defined in Plots.Axis.Labels

type N (TickLabels b v n) = n
type V (TickLabels b v n) 
Instance details

Defined in Plots.Axis.Labels

type V (TickLabels b v n) = v

class HasTickLabels (f :: * -> *) a b | a -> b where #

Minimal complete definition

tickLabel

Methods

tickLabel :: LensLike' f a (TickLabels b (V a) (N a)) #

The options for the label of ticks. This can be used on various levels of the axis:

tickLabel :: Traversal' (Tick b c n)       (TickLabels (BaseSpace c) n)
tickLabel :: Lens'      (SingleAxis b v n) (TickLabels v n)
tickLabel :: Lens'      (TickLabel v n)    (TickLabels v n)

tickLabelTextFunction :: LensLike' f a (TextFunction b (V a) (N a)) #

The TextFunction to render the text.

Default is mkText.

tickLabelFunction :: LensLike' f a ([N a] -> (N a, N a) -> [(N a, String)]) #

Tick labels functions are used to draw the tick labels. They has access to the major ticks and the current bounds. Returns the position of the tick and label to use at that position.

Default is atMajorTicks floatShow

tickLabelStyle :: LensLike' f a (Style (V a) (N a)) #

The Style to use on the rendered text.

Default is fontSize (output 11).

tickLabelGap :: LensLike' f a (N a) #

The gap between the axis and the tick labels.

Default is 12.

Instances
Functor f => HasTickLabels f (ColourBar b n) b 
Instance details

Defined in Plots.Axis.ColourBar

Methods

tickLabel :: LensLike' f (ColourBar b n) (TickLabels b (V (ColourBar b n)) (N (ColourBar b n))) #

tickLabelTextFunction :: LensLike' f (ColourBar b n) (TextFunction b (V (ColourBar b n)) (N (ColourBar b n))) #

tickLabelFunction :: LensLike' f (ColourBar b n) ([N (ColourBar b n)] -> (N (ColourBar b n), N (ColourBar b n)) -> [(N (ColourBar b n), String)]) #

tickLabelStyle :: LensLike' f (ColourBar b n) (Style (V (ColourBar b n)) (N (ColourBar b n))) #

tickLabelGap :: LensLike' f (ColourBar b n) (N (ColourBar b n)) #

HasTickLabels f (TickLabels b v n) b 
Instance details

Defined in Plots.Axis.Labels

Methods

tickLabel :: LensLike' f (TickLabels b v n) (TickLabels b (V (TickLabels b v n)) (N (TickLabels b v n))) #

tickLabelTextFunction :: LensLike' f (TickLabels b v n) (TextFunction b (V (TickLabels b v n)) (N (TickLabels b v n))) #

tickLabelFunction :: LensLike' f (TickLabels b v n) ([N (TickLabels b v n)] -> (N (TickLabels b v n), N (TickLabels b v n)) -> [(N (TickLabels b v n), String)]) #

tickLabelStyle :: LensLike' f (TickLabels b v n) (Style (V (TickLabels b v n)) (N (TickLabels b v n))) #

tickLabelGap :: LensLike' f (TickLabels b v n) (N (TickLabels b v n)) #

Functor f => HasTickLabels f (SingleAxis b v n) b 
Instance details

Defined in Plots.Axis

Methods

tickLabel :: LensLike' f (SingleAxis b v n) (TickLabels b (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

tickLabelTextFunction :: LensLike' f (SingleAxis b v n) (TextFunction b (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

tickLabelFunction :: LensLike' f (SingleAxis b v n) ([N (SingleAxis b v n)] -> (N (SingleAxis b v n), N (SingleAxis b v n)) -> [(N (SingleAxis b v n), String)]) #

tickLabelStyle :: LensLike' f (SingleAxis b v n) (Style (V (SingleAxis b v n)) (N (SingleAxis b v n))) #

tickLabelGap :: LensLike' f (SingleAxis b v n) (N (SingleAxis b v n)) #

(Applicative f, Traversable c) => HasTickLabels f (Axis b c n) b 
Instance details

Defined in Plots.Axis

Methods

tickLabel :: LensLike' f (Axis b c n) (TickLabels b (V (Axis b c n)) (N (Axis b c n))) #

tickLabelTextFunction :: LensLike' f (Axis b c n) (TextFunction b (V (Axis b c n)) (N (Axis b c n))) #

tickLabelFunction :: LensLike' f (Axis b c n) ([N (Axis b c n)] -> (N (Axis b c n), N (Axis b c n)) -> [(N (Axis b c n), String)]) #

tickLabelStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

tickLabelGap :: LensLike' f (Axis b c n) (N (Axis b c n)) #

drawTitle :: TypeableFloat n => BoundingBox V2 n -> Title b V2 n -> QDiagram b V2 n Any #

Render the title and place it around the bounding box.

data Title b (v :: * -> *) n #

Instances
(Renderable (Text n) b, TypeableFloat n) => Default (Title b V2 n) 
Instance details

Defined in Plots.Axis.Title

Methods

def :: Title b V2 n #

HasVisibility (Title b v n) 
Instance details

Defined in Plots.Axis.Title

Methods

visible :: Lens' (Title b v n) Bool #

hidden :: Lens' (Title b v n) Bool #

HasGap (Title b v n) 
Instance details

Defined in Plots.Axis.Title

Methods

gap :: Lens' (Title b v n) (N (Title b v n)) #

HasPlacement (Title b v n) 
Instance details

Defined in Plots.Axis.Title

Methods

placement :: Lens' (Title b v n) Placement #

placementAt :: Lens' (Title b v n) (V2 Rational) #

placementAnchor :: Lens' (Title b v n) (V2 Rational) #

gapDirection :: Lens' (Title b v n) (Direction V2 Rational) #

HasTitle (Title b v n) b 
Instance details

Defined in Plots.Axis.Title

Methods

title :: Lens' (Title b v n) (Title b (V (Title b v n)) (N (Title b v n))) #

titleText :: Lens' (Title b v n) String #

titleStyle :: Lens' (Title b v n) (Style (V (Title b v n)) (N (Title b v n))) #

titlePlacement :: Lens' (Title b v n) Placement #

titleGap :: Lens' (Title b v n) (N (Title b v n)) #

type N (Title b v n) 
Instance details

Defined in Plots.Axis.Title

type N (Title b v n) = n
type V (Title b v n) 
Instance details

Defined in Plots.Axis.Title

type V (Title b v n) = v

class HasTitle a b | a -> b where #

Minimal complete definition

title

Methods

title :: Lens' a (Title b (V a) (N a)) #

titleText :: Lens' a String #

The text used for the title. If the string is empty, no title is drawn.

Default is ""

titleStyle :: Lens' a (Style (V a) (N a)) #

The style applied to the title.

Default is mempty.

titlePlacement :: Lens' a Placement #

The placement of the title against the axis.

Default is mempty.

titleGap :: Lens' a (N a) #

The gap between the axis and the title.

Default is mempty.

Instances
HasTitle (Axis b c n) b 
Instance details

Defined in Plots.Axis

Methods

title :: Lens' (Axis b c n) (Title b (V (Axis b c n)) (N (Axis b c n))) #

titleText :: Lens' (Axis b c n) String #

titleStyle :: Lens' (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

titlePlacement :: Lens' (Axis b c n) Placement #

titleGap :: Lens' (Axis b c n) (N (Axis b c n)) #

HasTitle (Title b v n) b 
Instance details

Defined in Plots.Axis.Title

Methods

title :: Lens' (Title b v n) (Title b (V (Title b v n)) (N (Title b v n))) #

titleText :: Lens' (Title b v n) String #

titleStyle :: Lens' (Title b v n) (Style (V (Title b v n)) (N (Title b v n))) #

titlePlacement :: Lens' (Title b v n) Placement #

titleGap :: Lens' (Title b v n) (N (Title b v n)) #

drawLegend #

Arguments

:: (TypeableFloat n, Renderable (Path V2 n) b) 
=> BoundingBox V2 n

bounding box to place legend against

-> [(QDiagram b V2 n Any, String)]

diagram pictures along with their key

-> Legend b n

options for drawing the legend

-> QDiagram b V2 n Any

rendered legend

Draw a legend to the bounding box using the legend entries and legend options.

class HasLegend a b | a -> b where #

Minimal complete definition

legend

Methods

legend :: Lens' a (Legend b (N a)) #

Lens onto the Legend of something.

legendPlacement :: Lens' a Placement #

The Placement of the legend relative to the Axis.

legendGap :: Lens' a (N a) #

The gap between the legend and the axis.

legendStyle :: Lens' a (Style V2 (N a)) #

The style applied to the surronding box of the legend.

legendSpacing :: Lens' a (N a) #

The spacing between entries in the legend.

legendTextWidth :: Lens' a (N a) #

The space given for the text in the legend.

legendTextFunction :: Lens' a (String -> QDiagram b V2 (N a) Any) #

The function to generate the legend text.

legendTextStyle :: Lens' a (Style V2 (N a)) #

The style applied to the legend text.

legendOrientation :: Lens' a Orientation #

The way the legend entries are listed. (This will likely be replaced by a grid-like system)

Instances
HasLegend (Legend b n) b 
Instance details

Defined in Plots.Legend

Methods

legend :: Lens' (Legend b n) (Legend b (N (Legend b n))) #

legendPlacement :: Lens' (Legend b n) Placement #

legendGap :: Lens' (Legend b n) (N (Legend b n)) #

legendStyle :: Lens' (Legend b n) (Style V2 (N (Legend b n))) #

legendSpacing :: Lens' (Legend b n) (N (Legend b n)) #

legendTextWidth :: Lens' (Legend b n) (N (Legend b n)) #

legendTextFunction :: Lens' (Legend b n) (String -> QDiagram b V2 (N (Legend b n)) Any) #

legendTextStyle :: Lens' (Legend b n) (Style V2 (N (Legend b n))) #

legendOrientation :: Lens' (Legend b n) Orientation #

HasLegend (Axis b c n) b 
Instance details

Defined in Plots.Axis

Methods

legend :: Lens' (Axis b c n) (Legend b (N (Axis b c n))) #

legendPlacement :: Lens' (Axis b c n) Placement #

legendGap :: Lens' (Axis b c n) (N (Axis b c n)) #

legendStyle :: Lens' (Axis b c n) (Style V2 (N (Axis b c n))) #

legendSpacing :: Lens' (Axis b c n) (N (Axis b c n)) #

legendTextWidth :: Lens' (Axis b c n) (N (Axis b c n)) #

legendTextFunction :: Lens' (Axis b c n) (String -> QDiagram b V2 (N (Axis b c n)) Any) #

legendTextStyle :: Lens' (Axis b c n) (Style V2 (N (Axis b c n))) #

legendOrientation :: Lens' (Axis b c n) Orientation #

styledPlotLegends #

Arguments

:: Ord n 
=> [StyledPlot b v n] 
-> [(QDiagram b v n Any, String)]
[(legend pic, legend text)]

Render a list of legend entries, in order.

singleStyledPlotLegend #

Arguments

:: StyledPlot b v n 
-> [(n, QDiagram b v n Any, String)]
(z-order, legend pic, legend text)

Get the legend rendered entries from a single styled plot. The resulting entries are in no particular order. See also styledPlotLegends.

renderStyledPlot :: TypeableFloat n => AxisSpec V2 n -> StyledPlot b V2 n -> QDiagram b V2 n Any #

Render a StyledPlot given an and AxisSpec.

styleDynamic :: PlotStyle b v n -> DynamicPlot b v n -> StyledPlot b v n #

Give a DynamicPlot a concrete PlotStyle.

styledPlot :: Typeable p => Traversal' (StyledPlot b (V p) (N p)) p #

Traversal over a raw plot of a styled plot. The type of the plot must match for the traversal to be succesful.

dynamicPlotMods :: Functor f => (PlotMods b v n -> f (PlotMods b v n)) -> DynamicPlot b v n -> f (DynamicPlot b v n) #

The modifications to the PlotOptions and PlotStyle in a DynamicPlot.

dynamicPlot :: (Typeable p, Typeable b) => Traversal' (DynamicPlot b (V p) (N p)) (Plot p b) #

Traversal over the dynamic plot without the Plotable constraint _DynamicPlot has.

_DynamicPlot :: (Plotable p b, Typeable b) => Prism' (DynamicPlot b (V p) (N p)) (Plot p b) #

Prism for a DynamicPlot.

plotMods :: Functor f => (PlotMods b (V p) (N p) -> f (PlotMods b (V p) (N p))) -> Plot p b -> f (Plot p b) #

The modifications to the PlotOptions and PlotStyle in a Plot.

rawPlot :: SameSpace p p' => Lens (Plot p b) (Plot p' b) p p' #

Lens onto the raw Plotable inside a Plot.

mkPlot :: (Additive (V p), Num (N p)) => p -> Plot p b #

Make a Plot with Default PlotOptions.

display :: (MonadState s m, HasVisibility a) => ASetter' s a -> m () #

Set visible to True for the given setter.

display minorGridLines :: State (Axis b v n) ()
display colourBar      :: State (Axis b v n) ()

hide :: (MonadState s m, HasVisibility a) => ASetter' s a -> m () #

Set visible to False for the given setter.

hide minorTicks          :: State (Axis b v n) ()
hide (xAxis . gridLines) :: State (Axis b v n) ()

specPoint :: (Applicative v, Additive v, Floating n) => AxisSpec v n -> Point v n -> Point v n #

Apply log scaling and the transform to a point.

scaleNum :: Floating n => (n, n) -> LogScale -> n -> n #

Scale a number by log10-ing it and linearly scaling it so it's within the same range.

specTrans :: Functor f => (Transformation v n -> f (Transformation v n)) -> AxisSpec v n -> f (AxisSpec v n) #

specScale :: Functor f => (v LogScale -> f (v LogScale)) -> AxisSpec v n -> f (AxisSpec v n) #

specColourMap :: Functor f => (ColourMap -> f ColourMap) -> AxisSpec v n -> f (AxisSpec v n) #

specBounds :: Functor f => (v (n, n) -> f (v (n, n))) -> AxisSpec v n -> f (AxisSpec v n) #

class (Typeable p, Enveloped p) => Plotable p b where #

Class defining how plots should be rendered.

Minimal complete definition

renderPlotable

Methods

renderPlotable :: InSpace v n p => AxisSpec v n -> PlotStyle b v n -> p -> QDiagram b v n Any #

Render a plot according to the AxisSpec, using the PlotStyle.

defLegendPic :: InSpace v n p => PlotStyle b v n -> p -> QDiagram b v n Any #

The default legend picture when the LegendPic is DefaultLegendPic.

Instances
(TypeableFloat n, Renderable (Path V2 n) b) => Plotable (BarPlot n) b 
Instance details

Defined in Plots.Types.Bar

Methods

renderPlotable :: InSpace v n0 (BarPlot n) => AxisSpec v n0 -> PlotStyle b v n0 -> BarPlot n -> QDiagram b v n0 Any #

defLegendPic :: InSpace v n0 (BarPlot n) => PlotStyle b v n0 -> BarPlot n -> QDiagram b v n0 Any #

(TypeableFloat n, Renderable (Path V2 n) b) => Plotable (HistogramPlot n) b 
Instance details

Defined in Plots.Types.Histogram

Methods

renderPlotable :: InSpace v n0 (HistogramPlot n) => AxisSpec v n0 -> PlotStyle b v n0 -> HistogramPlot n -> QDiagram b v n0 Any #

defLegendPic :: InSpace v n0 (HistogramPlot n) => PlotStyle b v n0 -> HistogramPlot n -> QDiagram b v n0 Any #

(TypeableFloat n, Renderable (Path V2 n) b) => Plotable (Wedge n) b 
Instance details

Defined in Plots.Types.Pie

Methods

renderPlotable :: InSpace v n0 (Wedge n) => AxisSpec v n0 -> PlotStyle b v n0 -> Wedge n -> QDiagram b v n0 Any #

defLegendPic :: InSpace v n0 (Wedge n) => PlotStyle b v n0 -> Wedge n -> QDiagram b v n0 Any #

(TypeableFloat n, Renderable (Path V2 n) b) => Plotable (Path V2 n) b 
Instance details

Defined in Plots.Types

Methods

renderPlotable :: InSpace v n0 (Path V2 n) => AxisSpec v n0 -> PlotStyle b v n0 -> Path V2 n -> QDiagram b v n0 Any #

defLegendPic :: InSpace v n0 (Path V2 n) => PlotStyle b v n0 -> Path V2 n -> QDiagram b v n0 Any #

(Typeable b, TypeableFloat n, Renderable (Path V2 n) b) => Plotable (HeatMap b n) b 
Instance details

Defined in Plots.Types.HeatMap

Methods

renderPlotable :: InSpace v n0 (HeatMap b n) => AxisSpec v n0 -> PlotStyle b v n0 -> HeatMap b n -> QDiagram b v n0 Any #

defLegendPic :: InSpace v n0 (HeatMap b n) => PlotStyle b v n0 -> HeatMap b n -> QDiagram b v n0 Any #

(TypeableFloat n, Renderable (Path V2 n) b) => Plotable (ScatterPlot V2 n) b 
Instance details

Defined in Plots.Types.Scatter

Methods

renderPlotable :: InSpace v n0 (ScatterPlot V2 n) => AxisSpec v n0 -> PlotStyle b v n0 -> ScatterPlot V2 n -> QDiagram b v n0 Any #

defLegendPic :: InSpace v n0 (ScatterPlot V2 n) => PlotStyle b v n0 -> ScatterPlot V2 n -> QDiagram b v n0 Any #

(Typeable b, Typeable v, Metric v, Typeable n, OrderedField n) => Plotable (QDiagram b v n Any) b 
Instance details

Defined in Plots.Types

Methods

renderPlotable :: InSpace v0 n0 (QDiagram b v n Any) => AxisSpec v0 n0 -> PlotStyle b v0 n0 -> QDiagram b v n Any -> QDiagram b v0 n0 Any #

defLegendPic :: InSpace v0 n0 (QDiagram b v n Any) => PlotStyle b v0 n0 -> QDiagram b v n Any -> QDiagram b v0 n0 Any #

class HasVisibility a where #

Class of objects that can be hidden.

Minimal complete definition

visible

Methods

visible :: Lens' a Bool #

Lens onto whether an object should be visible when rendered.

hidden :: Lens' a Bool #

The opposite of visible.

Instances
HasVisibility (ColourBar b n) 
Instance details

Defined in Plots.Axis.ColourBar

HasVisibility (MajorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

HasVisibility (MinorTicks v n) 
Instance details

Defined in Plots.Axis.Ticks

HasVisibility (MajorGridLines v n) 
Instance details

Defined in Plots.Axis.Grid

HasVisibility (MinorGridLines v n)

Hidden by default.

Instance details

Defined in Plots.Axis.Grid

HasVisibility (AxisLine v n) 
Instance details

Defined in Plots.Axis.Line

Methods

visible :: Lens' (AxisLine v n) Bool #

hidden :: Lens' (AxisLine v n) Bool #

HasVisibility (Legend b n) 
Instance details

Defined in Plots.Legend

Methods

visible :: Lens' (Legend b n) Bool #

hidden :: Lens' (Legend b n) Bool #

HasVisibility (Plot p b) 
Instance details

Defined in Plots.Types

Methods

visible :: Lens' (Plot p b) Bool #

hidden :: Lens' (Plot p b) Bool #

HasVisibility (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

Methods

visible :: Lens' (SingleAxis b v n) Bool #

hidden :: Lens' (SingleAxis b v n) Bool #

HasVisibility (AxisLabel b v n) 
Instance details

Defined in Plots.Axis.Labels

Methods

visible :: Lens' (AxisLabel b v n) Bool #

hidden :: Lens' (AxisLabel b v n) Bool #

HasVisibility (TickLabels b v n) 
Instance details

Defined in Plots.Axis.Labels

Methods

visible :: Lens' (TickLabels b v n) Bool #

hidden :: Lens' (TickLabels b v n) Bool #

HasVisibility (Title b v n) 
Instance details

Defined in Plots.Axis.Title

Methods

visible :: Lens' (Title b v n) Bool #

hidden :: Lens' (Title b v n) Bool #

HasVisibility (PlotMods b v n) 
Instance details

Defined in Plots.Types

Methods

visible :: Lens' (PlotMods b v n) Bool #

hidden :: Lens' (PlotMods b v n) Bool #

HasVisibility (DynamicPlot b v n) 
Instance details

Defined in Plots.Types

Methods

visible :: Lens' (DynamicPlot b v n) Bool #

hidden :: Lens' (DynamicPlot b v n) Bool #

HasVisibility (StyledPlot b v n) 
Instance details

Defined in Plots.Types

Methods

visible :: Lens' (StyledPlot b v n) Bool #

hidden :: Lens' (StyledPlot b v n) Bool #

HasVisibility (PlotOptions b v n) 
Instance details

Defined in Plots.Types

Methods

visible :: Lens' (PlotOptions b v n) Bool #

hidden :: Lens' (PlotOptions b v n) Bool #

data PlotMods b (v :: * -> *) n #

A PlotOptions with modifications to a PlotStyle.

Instances
Functor f => HasPlotOptions f (PlotMods b v n) b 
Instance details

Defined in Plots.Types

Methods

plotOptions :: LensLike' f (PlotMods b v n) (PlotOptions b (V (PlotMods b v n)) (N (PlotMods b v n))) #

plotName :: LensLike' f (PlotMods b v n) Name #

clipPlot :: LensLike' f (PlotMods b v n) Bool #

legendEntries :: LensLike' f (PlotMods b v n) [LegendEntry b (V (PlotMods b v n)) (N (PlotMods b v n))] #

plotTransform :: LensLike' f (PlotMods b v n) (Transformation (V (PlotMods b v n)) (N (PlotMods b v n))) #

plotVisible :: LensLike' f (PlotMods b v n) Bool #

Settable f => HasPlotStyle f (PlotMods b v n) b 
Instance details

Defined in Plots.Types

Methods

plotStyle :: LensLike' f (PlotMods b v n) (PlotStyle b (V (PlotMods b v n)) (N (PlotMods b v n))) #

plotColour :: LensLike' f (PlotMods b v n) (Colour Double) #

plotColor :: LensLike' f (PlotMods b v n) (Colour Double) #

lineStyle :: LensLike' f (PlotMods b v n) (Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

lineStyleFunction :: LensLike' f (PlotMods b v n) (Colour Double -> Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

markerStyle :: LensLike' f (PlotMods b v n) (Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

markerStyleFunction :: LensLike' f (PlotMods b v n) (Colour Double -> Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

areaStyle :: LensLike' f (PlotMods b v n) (Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

areaStyleFunction :: LensLike' f (PlotMods b v n) (Colour Double -> Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

textStyle :: LensLike' f (PlotMods b v n) (Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

textStyleFunction :: LensLike' f (PlotMods b v n) (Colour Double -> Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

plotMarker :: LensLike' f (PlotMods b v n) (QDiagram b (V (PlotMods b v n)) (N (PlotMods b v n)) Any) #

plotStyles :: LensLike' f (PlotMods b v n) (Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

plotStyleFunctions :: LensLike' f (PlotMods b v n) (Colour Double -> Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

(Additive v, Num n) => Default (PlotMods b v n) 
Instance details

Defined in Plots.Types

Methods

def :: PlotMods b v n #

HasVisibility (PlotMods b v n) 
Instance details

Defined in Plots.Types

Methods

visible :: Lens' (PlotMods b v n) Bool #

hidden :: Lens' (PlotMods b v n) Bool #

type N (PlotMods b v n) 
Instance details

Defined in Plots.Types

type N (PlotMods b v n) = n
type V (PlotMods b v n) 
Instance details

Defined in Plots.Types

type V (PlotMods b v n) = v

data DynamicPlot b (v :: * -> *) n where #

A wrapped up Plot, used to store plots in an Axis.

Constructors

DynamicPlot :: DynamicPlot b v n 
Instances
(Applicative f, Typeable b, v ~ V2, Typeable n) => HasWedge f (DynamicPlot b v n) 
Instance details

Defined in Plots.Types.Pie

Methods

pieWedge :: LensLike' f (DynamicPlot b v n) (Wedge (N (DynamicPlot b v n))) #

wedgeOuterRadius :: LensLike' f (DynamicPlot b v n) (N (DynamicPlot b v n)) #

wedgeInnerRadius :: LensLike' f (DynamicPlot b v n) (N (DynamicPlot b v n)) #

wedgeOffset :: LensLike' f (DynamicPlot b v n) (N (DynamicPlot b v n)) #

wedgeWidth :: LensLike' f (DynamicPlot b v n) (Angle (N (DynamicPlot b v n))) #

wedgeDirection :: LensLike' f (DynamicPlot b v n) (Direction V2 (N (DynamicPlot b v n))) #

(Applicative f, Typeable b, Typeable v, Typeable n) => HasConnectingLine f (DynamicPlot b v n) 
Instance details

Defined in Plots.Types.Scatter

(Applicative f, Typeable b, Typeable v, Typeable n, Typeable a) => HasScatterOptions f (DynamicPlot b v n) a 
Instance details

Defined in Plots.Types.Scatter

Methods

gscatterOptions :: LensLike' f (DynamicPlot b v n) (ScatterOptions (V (DynamicPlot b v n)) (N (DynamicPlot b v n)) a) #

scatterTransform :: LensLike' f (DynamicPlot b v n) (a -> Transformation (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

scatterStyle :: LensLike' f (DynamicPlot b v n) (a -> Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

scatterPosition :: LensLike' f (DynamicPlot b v n) (a -> Point (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

Functor f => HasPlotOptions f (DynamicPlot b v n) b 
Instance details

Defined in Plots.Types

Methods

plotOptions :: LensLike' f (DynamicPlot b v n) (PlotOptions b (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

plotName :: LensLike' f (DynamicPlot b v n) Name #

clipPlot :: LensLike' f (DynamicPlot b v n) Bool #

legendEntries :: LensLike' f (DynamicPlot b v n) [LegendEntry b (V (DynamicPlot b v n)) (N (DynamicPlot b v n))] #

plotTransform :: LensLike' f (DynamicPlot b v n) (Transformation (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

plotVisible :: LensLike' f (DynamicPlot b v n) Bool #

Settable f => HasPlotStyle f (DynamicPlot b v n) b 
Instance details

Defined in Plots.Types

Methods

plotStyle :: LensLike' f (DynamicPlot b v n) (PlotStyle b (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

plotColour :: LensLike' f (DynamicPlot b v n) (Colour Double) #

plotColor :: LensLike' f (DynamicPlot b v n) (Colour Double) #

lineStyle :: LensLike' f (DynamicPlot b v n) (Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

lineStyleFunction :: LensLike' f (DynamicPlot b v n) (Colour Double -> Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

markerStyle :: LensLike' f (DynamicPlot b v n) (Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

markerStyleFunction :: LensLike' f (DynamicPlot b v n) (Colour Double -> Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

areaStyle :: LensLike' f (DynamicPlot b v n) (Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

areaStyleFunction :: LensLike' f (DynamicPlot b v n) (Colour Double -> Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

textStyle :: LensLike' f (DynamicPlot b v n) (Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

textStyleFunction :: LensLike' f (DynamicPlot b v n) (Colour Double -> Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

plotMarker :: LensLike' f (DynamicPlot b v n) (QDiagram b (V (DynamicPlot b v n)) (N (DynamicPlot b v n)) Any) #

plotStyles :: LensLike' f (DynamicPlot b v n) (Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

plotStyleFunctions :: LensLike' f (DynamicPlot b v n) (Colour Double -> Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

HasVisibility (DynamicPlot b v n) 
Instance details

Defined in Plots.Types

Methods

visible :: Lens' (DynamicPlot b v n) Bool #

hidden :: Lens' (DynamicPlot b v n) Bool #

type N (DynamicPlot b v n) 
Instance details

Defined in Plots.Types

type N (DynamicPlot b v n) = n
type V (DynamicPlot b v n) 
Instance details

Defined in Plots.Types

type V (DynamicPlot b v n) = v

data StyledPlot b (v :: * -> *) n #

A DynamicPlot with a concrete style. This is suitable for being rendered with renderStyledPlot and get extract the legend entries with styledPlotLegend.

You can make a StyledPlot with styleDynamic

Instances
(v ~ V2, Applicative f, Typeable n) => HasWedge f (StyledPlot b v n) 
Instance details

Defined in Plots.Types.Pie

Methods

pieWedge :: LensLike' f (StyledPlot b v n) (Wedge (N (StyledPlot b v n))) #

wedgeOuterRadius :: LensLike' f (StyledPlot b v n) (N (StyledPlot b v n)) #

wedgeInnerRadius :: LensLike' f (StyledPlot b v n) (N (StyledPlot b v n)) #

wedgeOffset :: LensLike' f (StyledPlot b v n) (N (StyledPlot b v n)) #

wedgeWidth :: LensLike' f (StyledPlot b v n) (Angle (N (StyledPlot b v n))) #

wedgeDirection :: LensLike' f (StyledPlot b v n) (Direction V2 (N (StyledPlot b v n))) #

(Applicative f, Typeable v, Typeable n) => HasConnectingLine f (StyledPlot b v n) 
Instance details

Defined in Plots.Types.Scatter

Functor f => HasPlotOptions f (StyledPlot b v n) b 
Instance details

Defined in Plots.Types

Methods

plotOptions :: LensLike' f (StyledPlot b v n) (PlotOptions b (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

plotName :: LensLike' f (StyledPlot b v n) Name #

clipPlot :: LensLike' f (StyledPlot b v n) Bool #

legendEntries :: LensLike' f (StyledPlot b v n) [LegendEntry b (V (StyledPlot b v n)) (N (StyledPlot b v n))] #

plotTransform :: LensLike' f (StyledPlot b v n) (Transformation (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

plotVisible :: LensLike' f (StyledPlot b v n) Bool #

Functor f => HasPlotStyle f (StyledPlot b v n) b 
Instance details

Defined in Plots.Types

Methods

plotStyle :: LensLike' f (StyledPlot b v n) (PlotStyle b (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

plotColour :: LensLike' f (StyledPlot b v n) (Colour Double) #

plotColor :: LensLike' f (StyledPlot b v n) (Colour Double) #

lineStyle :: LensLike' f (StyledPlot b v n) (Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

lineStyleFunction :: LensLike' f (StyledPlot b v n) (Colour Double -> Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

markerStyle :: LensLike' f (StyledPlot b v n) (Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

markerStyleFunction :: LensLike' f (StyledPlot b v n) (Colour Double -> Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

areaStyle :: LensLike' f (StyledPlot b v n) (Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

areaStyleFunction :: LensLike' f (StyledPlot b v n) (Colour Double -> Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

textStyle :: LensLike' f (StyledPlot b v n) (Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

textStyleFunction :: LensLike' f (StyledPlot b v n) (Colour Double -> Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

plotMarker :: LensLike' f (StyledPlot b v n) (QDiagram b (V (StyledPlot b v n)) (N (StyledPlot b v n)) Any) #

plotStyles :: LensLike' f (StyledPlot b v n) (Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

plotStyleFunctions :: LensLike' f (StyledPlot b v n) (Colour Double -> Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

HasVisibility (StyledPlot b v n) 
Instance details

Defined in Plots.Types

Methods

visible :: Lens' (StyledPlot b v n) Bool #

hidden :: Lens' (StyledPlot b v n) Bool #

(Metric v, OrderedField n) => Enveloped (StyledPlot b v n) 
Instance details

Defined in Plots.Types

Methods

getEnvelope :: StyledPlot b v n -> Envelope (V (StyledPlot b v n)) (N (StyledPlot b v n))

type N (StyledPlot b v n) 
Instance details

Defined in Plots.Types

type N (StyledPlot b v n) = n
type V (StyledPlot b v n) 
Instance details

Defined in Plots.Types

type V (StyledPlot b v n) = v

addLegendEntry :: (HasPlotOptions Identity a b, MonadState a m) => LegendEntry b (V a) (N a) -> m () #

Add a LegendEntry to something with PlotOptions. Here are some typical examples:

addLegendEntry :: LegendEntry b v n -> State (Plot (ScatterPlot v n) b) ()
addLegendEntry :: LegendEntry b v n -> State (DynamicPlot b v n) ()

If you only care about the name of the legend, use key.

key :: (HasPlotOptions Identity a b, MonadState a m, Num (N a)) => String -> m () #

Add a LegendEntry to something with PlotOptions using the String as the legendText and a DefaultLegendPic. Here are some typical examples:

key :: String -> State (Plot (ScatterPlot v n) b) ()
key :: String -> State (DynamicPlot b v n) ()
key :: String -> State (PlotMods b v n) ()

If you only care about the name of the legend, use key.

mkLegendEntry :: Num n => String -> LegendEntry b v n #

Make a legend entry with a default legendPicture and legendPrecedence 0 using the string as the legendText.

legendPrecedence :: Functor f => (n -> f n) -> LegendEntry b v n -> f (LegendEntry b v n) #

The order in which the legend entries are rendered. If precedence are equal, they entries are put in the order they are added to the axis.

Default is 0.

legendText :: Functor f => (String -> f String) -> LegendEntry b v n -> f (LegendEntry b v n) #

The text used in the legend entry.

legendPicture :: Functor f => (LegendPic b v n -> f (LegendPic b v n)) -> LegendEntry b v n -> f (LegendEntry b v n) #

The picture used in the legend entry.

placeAgainst :: (InSpace V2 n a, SameSpace a b, Enveloped a, HasOrigin b, Alignable b) => a -> Placement -> n -> b -> b #

A tool for aligned one object to another. Positions b around the bounding box of a by translating b.

vertical :: HasOrientation a => Lens' a Bool #

Lens onto whether an object's orientation is vertical.

horizontal :: HasOrientation a => Lens' a Bool #

Lens onto whether an object's orientation is horizontal.

orient :: HasOrientation o => o -> a -> a -> a #

Pick the first a if the object has Horizontal orientation and the second a if the object has a Vertical orientation.

class HasOrientation a where #

Class of things that have an orientation.

Minimal complete definition

orientation

Methods

orientation :: Lens' a Orientation #

Lens onto the orientation of an object.

Instances
HasOrientation Orientation 
Instance details

Defined in Plots.Types

HasOrientation (BarLayout n) 
Instance details

Defined in Plots.Types.Bar

HasOrientation (BarPlot n) 
Instance details

Defined in Plots.Types.Bar

HasOrientation (HistogramPlot n) 
Instance details

Defined in Plots.Types.Histogram

HasOrientation (HistogramOptions n) 
Instance details

Defined in Plots.Types.Histogram

HasOrientation (ColourBar b n) 
Instance details

Defined in Plots.Axis.ColourBar

HasOrientation (Legend b n) 
Instance details

Defined in Plots.Legend

HasOrientation p => HasOrientation (Plot p b) 
Instance details

Defined in Plots.Types

HasOrientation (MultiBarState b n a) 
Instance details

Defined in Plots.Types.Bar

class HasGap a where #

Minimal complete definition

gap

Methods

gap :: Lens' a (N a) #

The value of the gap when rendering.

Instances
HasGap (ColourBar b n) 
Instance details

Defined in Plots.Axis.ColourBar

Methods

gap :: Lens' (ColourBar b n) (N (ColourBar b n)) #

HasGap (Legend b n) 
Instance details

Defined in Plots.Legend

Methods

gap :: Lens' (Legend b n) (N (Legend b n)) #

HasGap (AxisLabel b v n) 
Instance details

Defined in Plots.Axis.Labels

Methods

gap :: Lens' (AxisLabel b v n) (N (AxisLabel b v n)) #

HasGap (TickLabels b v n) 
Instance details

Defined in Plots.Axis.Labels

Methods

gap :: Lens' (TickLabels b v n) (N (TickLabels b v n)) #

HasGap (Title b v n) 
Instance details

Defined in Plots.Axis.Title

Methods

gap :: Lens' (Title b v n) (N (Title b v n)) #

data Placement #

A Position is a point on an axis together with an anchor and a direction for the gap.

Constructors

Placement 

Fields

class HasPlacement a where #

Minimal complete definition

placement

Methods

placement :: Lens' a Placement #

placementAt :: Lens' a (V2 Rational) #

The position relative to the axis. V2 0 0 corresponds to the bottom left corner, V2 1 1 is the top right corner.

placementAnchor :: Lens' a (V2 Rational) #

The anchor used for the object being positioned. V2 0 0 corresponds to the bottom left corner, V2 1 1 is the top right corner.

gapDirection :: Lens' a (Direction V2 Rational) #

The direction to extend the gap when positioning.

Instances
HasPlacement Placement 
Instance details

Defined in Plots.Types

HasPlacement (ColourBar b n) 
Instance details

Defined in Plots.Axis.ColourBar

HasPlacement (Legend b n) 
Instance details

Defined in Plots.Legend

HasPlacement (Title b v n) 
Instance details

Defined in Plots.Axis.Title

Methods

placement :: Lens' (Title b v n) Placement #

placementAt :: Lens' (Title b v n) (V2 Rational) #

placementAnchor :: Lens' (Title b v n) (V2 Rational) #

gapDirection :: Lens' (Title b v n) (Direction V2 Rational) #

data LegendPic b (v :: * -> *) n #

Type allowing use of the default legend picture (depending on the plot) or a custom legend picture with access to the PlotStyle.

Constructors

DefaultLegendPic 
CustomLegendPic (PlotStyle b v n -> QDiagram b v n Any) 
Instances
Default (LegendPic b v n) 
Instance details

Defined in Plots.Types

Methods

def :: LegendPic b v n #

data LegendEntry b (v :: * -> *) n #

Data type for holding a legend entry.

Instances
type N (LegendEntry b v n) 
Instance details

Defined in Plots.Types

type N (LegendEntry b v n) = n
type V (LegendEntry b v n) 
Instance details

Defined in Plots.Types

type V (LegendEntry b v n) = v

data PlotOptions b (v :: * -> *) n #

Data type for holding information all plots must contain.

Instances
HasPlotOptions f (PlotOptions b v n) b 
Instance details

Defined in Plots.Types

Methods

plotOptions :: LensLike' f (PlotOptions b v n) (PlotOptions b (V (PlotOptions b v n)) (N (PlotOptions b v n))) #

plotName :: LensLike' f (PlotOptions b v n) Name #

clipPlot :: LensLike' f (PlotOptions b v n) Bool #

legendEntries :: LensLike' f (PlotOptions b v n) [LegendEntry b (V (PlotOptions b v n)) (N (PlotOptions b v n))] #

plotTransform :: LensLike' f (PlotOptions b v n) (Transformation (V (PlotOptions b v n)) (N (PlotOptions b v n))) #

plotVisible :: LensLike' f (PlotOptions b v n) Bool #

(Additive v, Num n) => Default (PlotOptions b v n) 
Instance details

Defined in Plots.Types

Methods

def :: PlotOptions b v n #

HasVisibility (PlotOptions b v n) 
Instance details

Defined in Plots.Types

Methods

visible :: Lens' (PlotOptions b v n) Bool #

hidden :: Lens' (PlotOptions b v n) Bool #

(Additive v, Num n) => HasOrigin (PlotOptions b v n)

Move origin by applying to plotTransform.

Instance details

Defined in Plots.Types

Methods

moveOriginTo :: Point (V (PlotOptions b v n)) (N (PlotOptions b v n)) -> PlotOptions b v n -> PlotOptions b v n

Qualifiable (PlotOptions b v n) 
Instance details

Defined in Plots.Types

Methods

(.>>) :: IsName a => a -> PlotOptions b v n -> PlotOptions b v n

(HasLinearMap v, Num n) => Transformable (PlotOptions b v n) 
Instance details

Defined in Plots.Types

Methods

transform :: Transformation (V (PlotOptions b v n)) (N (PlotOptions b v n)) -> PlotOptions b v n -> PlotOptions b v n

type N (PlotOptions b v n) 
Instance details

Defined in Plots.Types

type N (PlotOptions b v n) = n
type V (PlotOptions b v n) 
Instance details

Defined in Plots.Types

type V (PlotOptions b v n) = v

class HasPlotOptions (f :: * -> *) a b | a -> b where #

Class of things that have PlotOptions.

Minimal complete definition

plotOptions

Methods

plotOptions :: LensLike' f a (PlotOptions b (V a) (N a)) #

Lens onto the PlotOptions.

plotName :: LensLike' f a Name #

The Name applied to the plot. This gives a way to reference a specific plot in a rendered axis.

Default is mempty.

clipPlot :: LensLike' f a Bool #

Whether the plot should be clipped to the bounds of the axes.

Default is True.

legendEntries :: LensLike' f a [LegendEntry b (V a) (N a)] #

The legend entries to be used for the current plot.

Default is mempty.

plotTransform :: LensLike' f a (Transformation (V a) (N a)) #

The transform applied to the plot once it's in the axis coordinates.

Default is mempty.

plotVisible :: LensLike' f a Bool #

Whether or not the plot should be shown. The BoundingBox of the plot will still affect the inferred axis bounds.

Default is True.

Instances
Functor f => HasPlotOptions f (Plot p b) b 
Instance details

Defined in Plots.Types

Methods

plotOptions :: LensLike' f (Plot p b) (PlotOptions b (V (Plot p b)) (N (Plot p b))) #

plotName :: LensLike' f (Plot p b) Name #

clipPlot :: LensLike' f (Plot p b) Bool #

legendEntries :: LensLike' f (Plot p b) [LegendEntry b (V (Plot p b)) (N (Plot p b))] #

plotTransform :: LensLike' f (Plot p b) (Transformation (V (Plot p b)) (N (Plot p b))) #

plotVisible :: LensLike' f (Plot p b) Bool #

Functor f => HasPlotOptions f (StyledPlot b v n) b 
Instance details

Defined in Plots.Types

Methods

plotOptions :: LensLike' f (StyledPlot b v n) (PlotOptions b (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

plotName :: LensLike' f (StyledPlot b v n) Name #

clipPlot :: LensLike' f (StyledPlot b v n) Bool #

legendEntries :: LensLike' f (StyledPlot b v n) [LegendEntry b (V (StyledPlot b v n)) (N (StyledPlot b v n))] #

plotTransform :: LensLike' f (StyledPlot b v n) (Transformation (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

plotVisible :: LensLike' f (StyledPlot b v n) Bool #

HasPlotOptions f (PlotOptions b v n) b 
Instance details

Defined in Plots.Types

Methods

plotOptions :: LensLike' f (PlotOptions b v n) (PlotOptions b (V (PlotOptions b v n)) (N (PlotOptions b v n))) #

plotName :: LensLike' f (PlotOptions b v n) Name #

clipPlot :: LensLike' f (PlotOptions b v n) Bool #

legendEntries :: LensLike' f (PlotOptions b v n) [LegendEntry b (V (PlotOptions b v n)) (N (PlotOptions b v n))] #

plotTransform :: LensLike' f (PlotOptions b v n) (Transformation (V (PlotOptions b v n)) (N (PlotOptions b v n))) #

plotVisible :: LensLike' f (PlotOptions b v n) Bool #

Functor f => HasPlotOptions f (PlotMods b v n) b 
Instance details

Defined in Plots.Types

Methods

plotOptions :: LensLike' f (PlotMods b v n) (PlotOptions b (V (PlotMods b v n)) (N (PlotMods b v n))) #

plotName :: LensLike' f (PlotMods b v n) Name #

clipPlot :: LensLike' f (PlotMods b v n) Bool #

legendEntries :: LensLike' f (PlotMods b v n) [LegendEntry b (V (PlotMods b v n)) (N (PlotMods b v n))] #

plotTransform :: LensLike' f (PlotMods b v n) (Transformation (V (PlotMods b v n)) (N (PlotMods b v n))) #

plotVisible :: LensLike' f (PlotMods b v n) Bool #

Functor f => HasPlotOptions f (DynamicPlot b v n) b 
Instance details

Defined in Plots.Types

Methods

plotOptions :: LensLike' f (DynamicPlot b v n) (PlotOptions b (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

plotName :: LensLike' f (DynamicPlot b v n) Name #

clipPlot :: LensLike' f (DynamicPlot b v n) Bool #

legendEntries :: LensLike' f (DynamicPlot b v n) [LegendEntry b (V (DynamicPlot b v n)) (N (DynamicPlot b v n))] #

plotTransform :: LensLike' f (DynamicPlot b v n) (Transformation (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

plotVisible :: LensLike' f (DynamicPlot b v n) Bool #

Settable f => HasPlotOptions f (Axis b c n) b 
Instance details

Defined in Plots.Axis

Methods

plotOptions :: LensLike' f (Axis b c n) (PlotOptions b (V (Axis b c n)) (N (Axis b c n))) #

plotName :: LensLike' f (Axis b c n) Name #

clipPlot :: LensLike' f (Axis b c n) Bool #

legendEntries :: LensLike' f (Axis b c n) [LegendEntry b (V (Axis b c n)) (N (Axis b c n))] #

plotTransform :: LensLike' f (Axis b c n) (Transformation (V (Axis b c n)) (N (Axis b c n))) #

plotVisible :: LensLike' f (Axis b c n) Bool #

data AxisSpec (v :: * -> *) n #

Information from the Axis necessary to render a Plotable.

Constructors

AxisSpec 

Fields

Instances
type N (AxisSpec v n) 
Instance details

Defined in Plots.Types

type N (AxisSpec v n) = n
type V (AxisSpec v n) 
Instance details

Defined in Plots.Types

type V (AxisSpec v n) = v

(&~~) :: Monad m => s -> StateT s m a -> m s infix 1 #

Similar to '(&~)' but works with StateT and returns it in m.

(&=) :: MonadState s m => ASetter' s b -> State b a -> m () infix 3 #

Similar to '(%=)' but takes a state modification instead of a function.

viridis :: ColourMap #

The viridis colour map taken from https://bids.github.io/colormap/. This is the default colour map.

plasma :: ColourMap #

The plasma colour map taken from https://bids.github.io/colormap/.

inferno :: ColourMap #

The inferno colour map taken from https://bids.github.io/colormap/.

greys :: ColourMap #

A colour map from black to white.

toStops :: Fractional n => ColourMap -> [GradientStop n] #

colourList :: ColourMap -> [(Rational, AlphaColour Double)] #

Return the list of colours in the [0,1] range in order. This always includes colours 0 and 1.

cmTraverse :: IndexedTraversal' Rational ColourMap (AlphaColour Double) #

Indexed traversal over the colours indexed and ordered by their position in the map.

star' :: (InSpace V2 n t, TrailLike t) => n -> t #

A filled in five sided start of size x.

plus :: (InSpace V2 n t, TrailLike t) => n -> t #

Filled in + symbol.

crossShape :: (InSpace V2 n t, TrailLike t) => n -> t #

A rotated plus.

diamond :: (InSpace V2 n t, TrailLike t) => n -> t #

A rotated square.

asterisk :: OrderedField n => Int -> n -> Path V2 n #

Make an asterisk with n spokes, each of length l.

lineMarkers :: OrderedField n => [Path V2 n] #

asterisk markers with varying numbers of prongs.

colours2 :: OrderedField n => [Colour n] #

Another colour set, used for vividColours.

colours1 :: OrderedField n => [Colour n] #

A colourful colour set used for fadedColours.

blackAndWhite :: (TypeableFloat n, Renderable (Path V2 n) b) => AxisStyle b V2 n #

Theme without any colours, useful for black and white documents.

vividColours :: (TypeableFloat n, Renderable (Path V2 n) b) => AxisStyle b V2 n #

Theme using funColours with no lines on 'areaStyle.

fadedColours :: (TypeableFloat n, Renderable (Path V2 n) b) => AxisStyle b V2 n #

Theme using funColours with faded fills and thick lines.

applyTextStyle :: (SameSpace a t, HasPlotStyle (Const (PlotStyle b (V a) (N a)) :: * -> *) a b, HasStyle t) => a -> t -> t #

Apply the textStyle from a PlotStyle.

applyTextStyle :: (InSpace v n t, HasStyle t) => PlotStyle b v n -> t -> t

applyAreaStyle :: (SameSpace a t, HasPlotStyle (Const (PlotStyle b (V a) (N a)) :: * -> *) a b, HasStyle t) => a -> t -> t #

Apply the 'areaStyle from a PlotStyle.

applyLineStyle :: (InSpace v n t, HasStyle t) => PlotStyle b v n -> t -> t

applyMarkerStyle :: (SameSpace a t, HasPlotStyle (Const (PlotStyle b (V a) (N a)) :: * -> *) a b, HasStyle t) => a -> t -> t #

Apply the markerStyle from a PlotStyle.

applyMarkerStyle :: (InSpace v n t, HasStyle t) => PlotStyle b v n -> t -> t

applyLineStyle :: (SameSpace a t, HasPlotStyle (Const (PlotStyle b (V a) (N a)) :: * -> *) a b, HasStyle t) => a -> t -> t #

Apply the lineStyle from a PlotStyle.

applyLineStyle :: (InSpace v n t, HasStyle t) => PlotStyle b v n -> t -> t

data PlotStyle b (v :: * -> *) n #

Plot styles are used to style each plot in an axis. Every Axis comes with a list of plots styles (contained in the AxisStyle) which get applied the plots upon rendering.

You can either change the list of plot styles used with axisStyle:

stylishAxis = r2Axis &~ do
  axisStyle .= vividColours
  linePlot [(1,2) (3,4)] $ key "line 1"
  linePlot [(1,1) (4,2)] $ key "line 2"

change the style for individual plots when changing the plot state.

stylishAxis2 = r2Axis &~ do
  linePlot [(1,2) (3,4)] $ do
    key "line 1"
    plotColour .= green
  linePlot [(1,1) (4,2)] $ do
    key "line 2"
    plotColour .= orange

A plot style is made up of separate styles (lineStyle, markerStyle, areaStyle and textStyle) a plotColour and a plotMarker. When rendering a plot, the PlotStyles in an AxisStyle are used to style each plot. The lenses can be used to customise each style when adding the plot.

  • plotColour - the underlying colour of the plot
  • lineStyle - style used for lines (linePlot, connectingLine in a scatterPlot)
  • areaStyle - style used for any area (barPlot, piePlot, histogramPlot)
  • markerStyle - style used for markers in scatterPlot
  • plotMarker - marker used in scatterPlot
Instances
HasPlotStyle f (PlotStyle b v n) b 
Instance details

Defined in Plots.Style

Methods

plotStyle :: LensLike' f (PlotStyle b v n) (PlotStyle b (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

plotColour :: LensLike' f (PlotStyle b v n) (Colour Double) #

plotColor :: LensLike' f (PlotStyle b v n) (Colour Double) #

lineStyle :: LensLike' f (PlotStyle b v n) (Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

lineStyleFunction :: LensLike' f (PlotStyle b v n) (Colour Double -> Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

markerStyle :: LensLike' f (PlotStyle b v n) (Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

markerStyleFunction :: LensLike' f (PlotStyle b v n) (Colour Double -> Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

areaStyle :: LensLike' f (PlotStyle b v n) (Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

areaStyleFunction :: LensLike' f (PlotStyle b v n) (Colour Double -> Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

textStyle :: LensLike' f (PlotStyle b v n) (Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

textStyleFunction :: LensLike' f (PlotStyle b v n) (Colour Double -> Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

plotMarker :: LensLike' f (PlotStyle b v n) (QDiagram b (V (PlotStyle b v n)) (N (PlotStyle b v n)) Any) #

plotStyles :: LensLike' f (PlotStyle b v n) (Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

plotStyleFunctions :: LensLike' f (PlotStyle b v n) (Colour Double -> Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

(Metric v, Traversable v, OrderedField n) => Transformable (PlotStyle b v n) 
Instance details

Defined in Plots.Style

Methods

transform :: Transformation (V (PlotStyle b v n)) (N (PlotStyle b v n)) -> PlotStyle b v n -> PlotStyle b v n

type N (PlotStyle b v n) 
Instance details

Defined in Plots.Style

type N (PlotStyle b v n) = n
type V (PlotStyle b v n) 
Instance details

Defined in Plots.Style

type V (PlotStyle b v n) = v

class HasPlotStyle (f :: * -> *) a b | a -> b where #

Class for objects that contain a PlotStyle.

Minimal complete definition

plotStyle

Methods

plotStyle :: LensLike' f a (PlotStyle b (V a) (N a)) #

Lens onto the PlotStyle.

plotColour :: LensLike' f a (Colour Double) #

The plotColour is the overall colour of the plot. This is passed to the other styles (lineStyle, markerStyle etc.) to give an overall colour for the plot.

plotColor :: LensLike' f a (Colour Double) #

Alias for plotColour.

lineStyle :: LensLike' f a (Style (V a) (N a)) #

This style is applied to any plots made up of lines only (like Path plots). This is a less general version of lineStyleFunction.

lineStyleFunction :: LensLike' f a (Colour Double -> Style (V a) (N a)) #

A version lineStyle with access to the current plotColour when applyLineStyle is used.

markerStyle :: LensLike' f a (Style (V a) (N a)) #

This style is applied to any markers in the plot (usually the plotMarker). This is a less general version of markerStyleFunction.

markerStyleFunction :: LensLike' f a (Colour Double -> Style (V a) (N a)) #

A version lineStyle with access to the current plotColour when applyMarkerStyle is used.

areaStyle :: LensLike' f a (Style (V a) (N a)) #

This style is applied to any filled areas in a plot (like Bar or Ribbon). This is a less general version of areaStyleFunction.

areaStyleFunction :: LensLike' f a (Colour Double -> Style (V a) (N a)) #

A version areaStyle with access to the current plotColour when applyAreaStyle is used.

textStyle :: LensLike' f a (Style (V a) (N a)) #

This style is applied to text plots. This is a less general version of textStyleFunction.

textStyleFunction :: LensLike' f a (Colour Double -> Style (V a) (N a)) #

A version textStyle with access to the current plotColour when applyAreaStyle is used.

plotMarker :: LensLike' f a (QDiagram b (V a) (N a) Any) #

This diagram is used as any markers in a plot (like Scatter). The markerStyle will be applied to this marker when the plot gets rendered.

plotStyles :: LensLike' f a (Style (V a) (N a)) #

A traversal over all the styles (lineStyle, markerStyle, areaStyle and textStyle) of a PlotStyle. This is a less general version of plotStyleFunctions.

plotStyleFunctions :: LensLike' f a (Colour Double -> Style (V a) (N a)) #

A version of plotStyles with access to the plotColour.

Instances
Settable f => HasPlotStyle f (Plot p b) b 
Instance details

Defined in Plots.Types

Methods

plotStyle :: LensLike' f (Plot p b) (PlotStyle b (V (Plot p b)) (N (Plot p b))) #

plotColour :: LensLike' f (Plot p b) (Colour Double) #

plotColor :: LensLike' f (Plot p b) (Colour Double) #

lineStyle :: LensLike' f (Plot p b) (Style (V (Plot p b)) (N (Plot p b))) #

lineStyleFunction :: LensLike' f (Plot p b) (Colour Double -> Style (V (Plot p b)) (N (Plot p b))) #

markerStyle :: LensLike' f (Plot p b) (Style (V (Plot p b)) (N (Plot p b))) #

markerStyleFunction :: LensLike' f (Plot p b) (Colour Double -> Style (V (Plot p b)) (N (Plot p b))) #

areaStyle :: LensLike' f (Plot p b) (Style (V (Plot p b)) (N (Plot p b))) #

areaStyleFunction :: LensLike' f (Plot p b) (Colour Double -> Style (V (Plot p b)) (N (Plot p b))) #

textStyle :: LensLike' f (Plot p b) (Style (V (Plot p b)) (N (Plot p b))) #

textStyleFunction :: LensLike' f (Plot p b) (Colour Double -> Style (V (Plot p b)) (N (Plot p b))) #

plotMarker :: LensLike' f (Plot p b) (QDiagram b (V (Plot p b)) (N (Plot p b)) Any) #

plotStyles :: LensLike' f (Plot p b) (Style (V (Plot p b)) (N (Plot p b))) #

plotStyleFunctions :: LensLike' f (Plot p b) (Colour Double -> Style (V (Plot p b)) (N (Plot p b))) #

Functor f => HasPlotStyle f (StyledPlot b v n) b 
Instance details

Defined in Plots.Types

Methods

plotStyle :: LensLike' f (StyledPlot b v n) (PlotStyle b (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

plotColour :: LensLike' f (StyledPlot b v n) (Colour Double) #

plotColor :: LensLike' f (StyledPlot b v n) (Colour Double) #

lineStyle :: LensLike' f (StyledPlot b v n) (Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

lineStyleFunction :: LensLike' f (StyledPlot b v n) (Colour Double -> Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

markerStyle :: LensLike' f (StyledPlot b v n) (Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

markerStyleFunction :: LensLike' f (StyledPlot b v n) (Colour Double -> Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

areaStyle :: LensLike' f (StyledPlot b v n) (Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

areaStyleFunction :: LensLike' f (StyledPlot b v n) (Colour Double -> Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

textStyle :: LensLike' f (StyledPlot b v n) (Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

textStyleFunction :: LensLike' f (StyledPlot b v n) (Colour Double -> Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

plotMarker :: LensLike' f (StyledPlot b v n) (QDiagram b (V (StyledPlot b v n)) (N (StyledPlot b v n)) Any) #

plotStyles :: LensLike' f (StyledPlot b v n) (Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

plotStyleFunctions :: LensLike' f (StyledPlot b v n) (Colour Double -> Style (V (StyledPlot b v n)) (N (StyledPlot b v n))) #

Settable f => HasPlotStyle f (PlotMods b v n) b 
Instance details

Defined in Plots.Types

Methods

plotStyle :: LensLike' f (PlotMods b v n) (PlotStyle b (V (PlotMods b v n)) (N (PlotMods b v n))) #

plotColour :: LensLike' f (PlotMods b v n) (Colour Double) #

plotColor :: LensLike' f (PlotMods b v n) (Colour Double) #

lineStyle :: LensLike' f (PlotMods b v n) (Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

lineStyleFunction :: LensLike' f (PlotMods b v n) (Colour Double -> Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

markerStyle :: LensLike' f (PlotMods b v n) (Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

markerStyleFunction :: LensLike' f (PlotMods b v n) (Colour Double -> Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

areaStyle :: LensLike' f (PlotMods b v n) (Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

areaStyleFunction :: LensLike' f (PlotMods b v n) (Colour Double -> Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

textStyle :: LensLike' f (PlotMods b v n) (Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

textStyleFunction :: LensLike' f (PlotMods b v n) (Colour Double -> Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

plotMarker :: LensLike' f (PlotMods b v n) (QDiagram b (V (PlotMods b v n)) (N (PlotMods b v n)) Any) #

plotStyles :: LensLike' f (PlotMods b v n) (Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

plotStyleFunctions :: LensLike' f (PlotMods b v n) (Colour Double -> Style (V (PlotMods b v n)) (N (PlotMods b v n))) #

Settable f => HasPlotStyle f (DynamicPlot b v n) b 
Instance details

Defined in Plots.Types

Methods

plotStyle :: LensLike' f (DynamicPlot b v n) (PlotStyle b (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

plotColour :: LensLike' f (DynamicPlot b v n) (Colour Double) #

plotColor :: LensLike' f (DynamicPlot b v n) (Colour Double) #

lineStyle :: LensLike' f (DynamicPlot b v n) (Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

lineStyleFunction :: LensLike' f (DynamicPlot b v n) (Colour Double -> Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

markerStyle :: LensLike' f (DynamicPlot b v n) (Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

markerStyleFunction :: LensLike' f (DynamicPlot b v n) (Colour Double -> Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

areaStyle :: LensLike' f (DynamicPlot b v n) (Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

areaStyleFunction :: LensLike' f (DynamicPlot b v n) (Colour Double -> Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

textStyle :: LensLike' f (DynamicPlot b v n) (Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

textStyleFunction :: LensLike' f (DynamicPlot b v n) (Colour Double -> Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

plotMarker :: LensLike' f (DynamicPlot b v n) (QDiagram b (V (DynamicPlot b v n)) (N (DynamicPlot b v n)) Any) #

plotStyles :: LensLike' f (DynamicPlot b v n) (Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

plotStyleFunctions :: LensLike' f (DynamicPlot b v n) (Colour Double -> Style (V (DynamicPlot b v n)) (N (DynamicPlot b v n))) #

HasPlotStyle f (PlotStyle b v n) b 
Instance details

Defined in Plots.Style

Methods

plotStyle :: LensLike' f (PlotStyle b v n) (PlotStyle b (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

plotColour :: LensLike' f (PlotStyle b v n) (Colour Double) #

plotColor :: LensLike' f (PlotStyle b v n) (Colour Double) #

lineStyle :: LensLike' f (PlotStyle b v n) (Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

lineStyleFunction :: LensLike' f (PlotStyle b v n) (Colour Double -> Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

markerStyle :: LensLike' f (PlotStyle b v n) (Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

markerStyleFunction :: LensLike' f (PlotStyle b v n) (Colour Double -> Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

areaStyle :: LensLike' f (PlotStyle b v n) (Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

areaStyleFunction :: LensLike' f (PlotStyle b v n) (Colour Double -> Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

textStyle :: LensLike' f (PlotStyle b v n) (Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

textStyleFunction :: LensLike' f (PlotStyle b v n) (Colour Double -> Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

plotMarker :: LensLike' f (PlotStyle b v n) (QDiagram b (V (PlotStyle b v n)) (N (PlotStyle b v n)) Any) #

plotStyles :: LensLike' f (PlotStyle b v n) (Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

plotStyleFunctions :: LensLike' f (PlotStyle b v n) (Colour Double -> Style (V (PlotStyle b v n)) (N (PlotStyle b v n))) #

Applicative f => HasPlotStyle f (AxisStyle b v n) b 
Instance details

Defined in Plots.Style

Methods

plotStyle :: LensLike' f (AxisStyle b v n) (PlotStyle b (V (AxisStyle b v n)) (N (AxisStyle b v n))) #

plotColour :: LensLike' f (AxisStyle b v n) (Colour Double) #

plotColor :: LensLike' f (AxisStyle b v n) (Colour Double) #

lineStyle :: LensLike' f (AxisStyle b v n) (Style (V (AxisStyle b v n)) (N (AxisStyle b v n))) #

lineStyleFunction :: LensLike' f (AxisStyle b v n) (Colour Double -> Style (V (AxisStyle b v n)) (N (AxisStyle b v n))) #

markerStyle :: LensLike' f (AxisStyle b v n) (Style (V (AxisStyle b v n)) (N (AxisStyle b v n))) #

markerStyleFunction :: LensLike' f (AxisStyle b v n) (Colour Double -> Style (V (AxisStyle b v n)) (N (AxisStyle b v n))) #

areaStyle :: LensLike' f (AxisStyle b v n) (Style (V (AxisStyle b v n)) (N (AxisStyle b v n))) #

areaStyleFunction :: LensLike' f (AxisStyle b v n) (Colour Double -> Style (V (AxisStyle b v n)) (N (AxisStyle b v n))) #

textStyle :: LensLike' f (AxisStyle b v n) (Style (V (AxisStyle b v n)) (N (AxisStyle b v n))) #

textStyleFunction :: LensLike' f (AxisStyle b v n) (Colour Double -> Style (V (AxisStyle b v n)) (N (AxisStyle b v n))) #

plotMarker :: LensLike' f (AxisStyle b v n) (QDiagram b (V (AxisStyle b v n)) (N (AxisStyle b v n)) Any) #

plotStyles :: LensLike' f (AxisStyle b v n) (Style (V (AxisStyle b v n)) (N (AxisStyle b v n))) #

plotStyleFunctions :: LensLike' f (AxisStyle b v n) (Colour Double -> Style (V (AxisStyle b v n)) (N (AxisStyle b v n))) #

Settable f => HasPlotStyle f (Axis b c n) b 
Instance details

Defined in Plots.Axis

Methods

plotStyle :: LensLike' f (Axis b c n) (PlotStyle b (V (Axis b c n)) (N (Axis b c n))) #

plotColour :: LensLike' f (Axis b c n) (Colour Double) #

plotColor :: LensLike' f (Axis b c n) (Colour Double) #

lineStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

lineStyleFunction :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) #

markerStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

markerStyleFunction :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) #

areaStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

areaStyleFunction :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) #

textStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

textStyleFunction :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) #

plotMarker :: LensLike' f (Axis b c n) (QDiagram b (V (Axis b c n)) (N (Axis b c n)) Any) #

plotStyles :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) #

plotStyleFunctions :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) #

class HasAxisStyle a b | a -> b where #

Class of things that have an AxisStyle.

Minimal complete definition

axisStyle

Methods

axisStyle :: Lens' a (AxisStyle b (V a) (N a)) #

Lens onto the AxisStyle.

axisColourMap :: Lens' a ColourMap #

The ColourMap is used to draw the ColourBar and render plots like HeatMap.

axisStyles :: IndexedTraversal' Int a (PlotStyle b (V a) (N a)) #

Traversal over the PlotStyles in an AxisStyle. There are always an infinite number of PlotStyles in an AxisStyle.

Instances
HasAxisStyle (Axis b v n) b 
Instance details

Defined in Plots.Axis

Methods

axisStyle :: Lens' (Axis b v n) (AxisStyle b (V (Axis b v n)) (N (Axis b v n))) #

axisColourMap :: Lens' (Axis b v n) ColourMap #

axisStyles :: IndexedTraversal' Int (Axis b v n) (PlotStyle b (V (Axis b v n)) (N (Axis b v n))) #

HasAxisStyle (AxisStyle b v n) b 
Instance details

Defined in Plots.Style

Methods

axisStyle :: Lens' (AxisStyle b v n) (AxisStyle b (V (AxisStyle b v n)) (N (AxisStyle b v n))) #

axisColourMap :: Lens' (AxisStyle b v n) ColourMap #

axisStyles :: IndexedTraversal' Int (AxisStyle b v n) (PlotStyle b (V (AxisStyle b v n)) (N (AxisStyle b v n))) #

data ColourMap #

A map from a number (usually between 0 and 1) to a colour. Colour maps are part of the AxisStyle, which is used for plots like HeatMap.

Instances
Show ColourMap 
Instance details

Defined in Plots.Style

Wrapped ColourMap 
Instance details

Defined in Plots.Style

Associated Types

type Unwrapped ColourMap :: * #

AsEmpty ColourMap 
Instance details

Defined in Plots.Style

Methods

_Empty :: Prism' ColourMap () #

Ixed ColourMap 
Instance details

Defined in Plots.Style

At ColourMap

Nothing == transparent

Instance details

Defined in Plots.Style

Transformable ColourMap 
Instance details

Defined in Plots.Style

Methods

transform :: Transformation (V ColourMap) (N ColourMap) -> ColourMap -> ColourMap

Rewrapped ColourMap ColourMap 
Instance details

Defined in Plots.Style

Each ColourMap ColourMap (AlphaColour Double) (AlphaColour Double) 
Instance details

Defined in Plots.Style

type Unwrapped ColourMap 
Instance details

Defined in Plots.Style

type IxValue ColourMap 
Instance details

Defined in Plots.Style

type Index ColourMap 
Instance details

Defined in Plots.Style

type N ColourMap 
Instance details

Defined in Plots.Style

type V ColourMap 
Instance details

Defined in Plots.Style

type V ColourMap = V1

logDeform :: (InSpace v n a, Foldable v, Floating n, Deformable a a) => v LogScale -> a -> a #

Deform an object according to the axis scale. Does nothing for linear scales.

logPoint :: (Additive v, Floating n) => v LogScale -> Point v n -> Point v n #

Transform a point according to the axis scale. Does nothing for linear scales.

logNumber :: Floating a => LogScale -> a -> a #

Log the number for LogAxis, do nothing for LinearAxis.

calculateScaling #

Arguments

:: (HasLinearMap v, OrderedField n, Applicative v) 
=> v (AxisScaling n)

axis scaling options

-> BoundingBox v n

bounding box from the axis plots

-> (v (n, n), Transformation v n, Transformation v n) 

Calculate the scaling for the axis.

The result returns:

  • The final bounds for the axis
  • scale to match desired scaleAspectRatio
  • scale to match desired asSizeSpec

calculateBounds #

Arguments

:: OrderedField n 
=> AxisScaling n

Scaling to use for this axis

-> Maybe (n, n)

Inferred bounds (from any plots)

-> (n, n)

Lower and upper bounds to use for this axis

Calculating the bounds for an axis.

noExtend :: Num n => Extending n #

Do not extend the axis beyond the inferred bounds.

data ScaleMode #

How the axis should be scaled when not all dimensions are set.

data AxisScaling n #

Data type used that concerns everything to do with the size or scale of the axis.

data Extending n #

How much to extend the bounds beyond any inferred bounds.

Constructors

AbsoluteExtend n 
RelativeExtend n 
Instances
Functor Extending 
Instance details

Defined in Plots.Axis.Scale

Methods

fmap :: (a -> b) -> Extending a -> Extending b #

(<$) :: a -> Extending b -> Extending a #

Eq n => Eq (Extending n) 
Instance details

Defined in Plots.Axis.Scale

Methods

(==) :: Extending n -> Extending n -> Bool #

(/=) :: Extending n -> Extending n -> Bool #

Ord n => Ord (Extending n) 
Instance details

Defined in Plots.Axis.Scale

Show n => Show (Extending n) 
Instance details

Defined in Plots.Axis.Scale

class HasAxisScaling (f :: * -> *) a where #

Class of things that have an AxisScaling.

Minimal complete definition

axisScaling

Methods

axisScaling :: LensLike' f a (AxisScaling (N a)) #

The way to scale in one direction.

scaleAspectRatio :: LensLike' f a (Maybe (N a)) #

The ratio relative to other axis. If no ratios are set, the ratio is not enforced. If at least one is set, Nothing ratios are 1.

scaleMode :: LensLike' f a ScaleMode #

The mode to determine how to scale the bounds in a direction. Choose between AutoScale, NoScale, Stretch or UniformScale.

Default is AutoScale.

logScale :: LensLike' f a LogScale #

Whether the axis uses LogAxis or LinearAxis.

Default is LinearAxis.

axisExtend :: LensLike' f a (Extending (N a)) #

How much to extend the bounds over infered bounds. This is ignored if a boundMax or boundMin is set.

boundMin :: LensLike' f a (Maybe (N a)) #

The maximum bound the axis. There are helper functions for setting a minimum bound for a specific axis.

xMin :: Lens' (Axis b V2 Double) (Maybe Double)
yMin :: Lens' (Axis b V2 Double) (Maybe Double)

Default is Nothing.

boundMax :: LensLike' f a (Maybe (N a)) #

The maximum bound the axis. There are helper functions for setting a maximum bound specific axis.

xMax :: Lens' (Axis b V2 Double) (Maybe Double)
yMax :: Lens' (Axis b V2 Double) (Maybe Double)
rMax :: Lens' (Axis b 'Polar Double) (Maybe Double)

Default is Nothing.

renderSize :: LensLike' f a (Maybe (N a)) #

The size of the rendered axis. Default is Just 400.

Instances
HasAxisScaling f (AxisScaling n) 
Instance details

Defined in Plots.Axis.Scale

Functor f => HasAxisScaling f (SingleAxis b v n) 
Instance details

Defined in Plots.Axis

(Applicative f, Traversable c) => HasAxisScaling f (Axis b c n) 
Instance details

Defined in Plots.Axis

Methods

axisScaling :: LensLike' f (Axis b c n) (AxisScaling (N (Axis b c n))) #

scaleAspectRatio :: LensLike' f (Axis b c n) (Maybe (N (Axis b c n))) #

scaleMode :: LensLike' f (Axis b c n) ScaleMode #

logScale :: LensLike' f (Axis b c n) LogScale #

axisExtend :: LensLike' f (Axis b c n) (Extending (N (Axis b c n))) #

boundMin :: LensLike' f (Axis b c n) (Maybe (N (Axis b c n))) #

boundMax :: LensLike' f (Axis b c n) (Maybe (N (Axis b c n))) #

renderSize :: LensLike' f (Axis b c n) (Maybe (N (Axis b c n))) #

data LogScale #

Should the axis be on a logarithmic scale. The Default is LinearAxis.

Constructors

LinearAxis 
LogAxis 
Instances
Eq LogScale 
Instance details

Defined in Plots.Axis.Scale

Show LogScale 
Instance details

Defined in Plots.Axis.Scale

Default LogScale 
Instance details

Defined in Plots.Axis.Scale

Methods

def :: LogScale #

etheta :: Circle v => E v #

:: Circle v => E v #

er :: Radial v => E v #

interpPolar :: Num n => n -> Polar n -> Polar n -> Polar n #

Polar interpolation between two polar coordinates.

polarV2 :: RealFloat n => Iso' (Polar n) (V2 n) #

Numerical Iso' between Polar and R2.

polarIso :: (Profunctor p, Functor f) => p (n, Angle n) (f (n, Angle n)) -> p (Polar n) (f (Polar n)) #

Iso' between Polar and its tuple form.

unpolar :: Polar n -> (n, Angle n) #

Turn a Polar back into a magnitude and Angle tuple.

polar :: (n, Angle n) -> Polar n #

Construct a Polar from a magnitude and Angle tuple.

mkPolar :: n -> Angle n -> Polar n #

Construct a Polar from a magnitude and an Angle.

class Radial (t :: * -> *) where #

Space which has a radial length basis. For Polar and Cylindrical this is the radius of the circle in the xy-plane. For Spherical this is the distance from the origin.

Minimal complete definition

_radial

Methods

_radial :: Functor f => (a -> f a) -> t a -> f (t a) #

Instances
Radial Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

_radial :: Functor f => (a -> f a) -> Polar a -> f (Polar a) #

class Radial t => Circle (t :: * -> *) where #

Space which has a radial and angular basis.

Minimal complete definition

_azimuth, _polar

Methods

_azimuth :: Functor f => (Angle a -> f (Angle a)) -> t a -> f (t a) #

_polar :: Functor f => (Polar a -> f (Polar a)) -> t a -> f (t a) #

Instances
Circle Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

_azimuth :: Functor f => (Angle a -> f (Angle a)) -> Polar a -> f (Polar a) #

_polar :: Functor f => (Polar a -> f (Polar a)) -> Polar a -> f (Polar a) #

class HasX (t :: * -> *) where #

Coordinate with at least one dimension where the x coordinate can be retreived numerically. Note this differs slightly from R1 which requires a lens for all values. This allows instances for different coordinates such as Polar, where the x coordinate can only be retreived numerically.

Minimal complete definition

x_

Methods

x_ :: RealFloat n => Lens' (t n) n #

Instances
HasX V3 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

x_ :: RealFloat n => Lens' (V3 n) n #

HasX V2 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

x_ :: RealFloat n => Lens' (V2 n) n #

HasX Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

x_ :: RealFloat n => Lens' (Polar n) n #

HasX v => HasX (Point v) 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

x_ :: RealFloat n => Lens' (Point v n) n #

class HasX t => HasY (t :: * -> *) where #

Coordinate with at least two dimensions where the x and y coordinates can be retreived numerically.

Minimal complete definition

xy_

Methods

y_ :: RealFloat n => Lens' (t n) n #

xy_ :: RealFloat n => Lens' (t n) (V2 n) #

Instances
HasY V3 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

y_ :: RealFloat n => Lens' (V3 n) n #

xy_ :: RealFloat n => Lens' (V3 n) (V2 n) #

HasY V2 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

y_ :: RealFloat n => Lens' (V2 n) n #

xy_ :: RealFloat n => Lens' (V2 n) (V2 n) #

HasY Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

y_ :: RealFloat n => Lens' (Polar n) n #

xy_ :: RealFloat n => Lens' (Polar n) (V2 n) #

HasY v => HasY (Point v) 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

y_ :: RealFloat n => Lens' (Point v n) n #

xy_ :: RealFloat n => Lens' (Point v n) (V2 n) #

newtype Polar a #

Constructors

Polar (V2 a) 
Instances
Monad Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

(>>=) :: Polar a -> (a -> Polar b) -> Polar b #

(>>) :: Polar a -> Polar b -> Polar b #

return :: a -> Polar a #

fail :: String -> Polar a #

Functor Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

fmap :: (a -> b) -> Polar a -> Polar b #

(<$) :: a -> Polar b -> Polar a #

MonadFix Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

mfix :: (a -> Polar a) -> Polar a #

Applicative Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

pure :: a -> Polar a #

(<*>) :: Polar (a -> b) -> Polar a -> Polar b #

liftA2 :: (a -> b -> c) -> Polar a -> Polar b -> Polar c #

(*>) :: Polar a -> Polar b -> Polar b #

(<*) :: Polar a -> Polar b -> Polar a #

Foldable Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

fold :: Monoid m => Polar m -> m #

foldMap :: Monoid m => (a -> m) -> Polar a -> m #

foldr :: (a -> b -> b) -> b -> Polar a -> b #

foldr' :: (a -> b -> b) -> b -> Polar a -> b #

foldl :: (b -> a -> b) -> b -> Polar a -> b #

foldl' :: (b -> a -> b) -> b -> Polar a -> b #

foldr1 :: (a -> a -> a) -> Polar a -> a #

foldl1 :: (a -> a -> a) -> Polar a -> a #

toList :: Polar a -> [a] #

null :: Polar a -> Bool #

length :: Polar a -> Int #

elem :: Eq a => a -> Polar a -> Bool #

maximum :: Ord a => Polar a -> a #

minimum :: Ord a => Polar a -> a #

sum :: Num a => Polar a -> a #

product :: Num a => Polar a -> a #

Traversable Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

traverse :: Applicative f => (a -> f b) -> Polar a -> f (Polar b) #

sequenceA :: Applicative f => Polar (f a) -> f (Polar a) #

mapM :: Monad m => (a -> m b) -> Polar a -> m (Polar b) #

sequence :: Monad m => Polar (m a) -> m (Polar a) #

MonadZip Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

mzip :: Polar a -> Polar b -> Polar (a, b) #

mzipWith :: (a -> b -> c) -> Polar a -> Polar b -> Polar c #

munzip :: Polar (a, b) -> (Polar a, Polar b) #

Radial Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

_radial :: Functor f => (a -> f a) -> Polar a -> f (Polar a) #

Circle Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

_azimuth :: Functor f => (Angle a -> f (Angle a)) -> Polar a -> f (Polar a) #

_polar :: Functor f => (Polar a -> f (Polar a)) -> Polar a -> f (Polar a) #

HasX Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

x_ :: RealFloat n => Lens' (Polar n) n #

HasY Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

y_ :: RealFloat n => Lens' (Polar n) n #

xy_ :: RealFloat n => Lens' (Polar n) (V2 n) #

HasR Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

_r :: RealFloat n => Lens' (Polar n) n #

Distributive Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

distribute :: Functor f => f (Polar a) -> Polar (f a)

collect :: Functor f => (a -> Polar b) -> f a -> Polar (f b)

distributeM :: Monad m => m (Polar a) -> Polar (m a)

collectM :: Monad m => (a -> Polar b) -> m a -> Polar (m b)

Representable Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Associated Types

type Rep Polar :: *

Methods

tabulate :: (Rep Polar -> a) -> Polar a

index :: Polar a -> Rep Polar -> a

(TypeableFloat n, Renderable (Path V2 n) b) => RenderAxis b Polar n 
Instance details

Defined in Plots.Axis.Render

Methods

renderAxis :: Axis b Polar n -> QDiagram b (BaseSpace Polar) n Any #

RealFloat n => PointLike V2 n (Polar n)

Does not satify lens laws.

Instance details

Defined in Diagrams.Coordinates.Polar

Methods

pointLike :: Iso' (Point V2 n) (Polar n) #

unpointLike :: Iso' (Polar n) (Point V2 n) #

Wrapped (Polar a) 
Instance details

Defined in Diagrams.Coordinates.Polar

Associated Types

type Unwrapped (Polar a) :: * #

Methods

_Wrapped' :: Iso' (Polar a) (Unwrapped (Polar a)) #

Generic1 Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Associated Types

type Rep1 Polar :: k -> * #

Methods

from1 :: Polar a -> Rep1 Polar a #

to1 :: Rep1 Polar a -> Polar a #

Polar a1 ~ t => Rewrapped (Polar a2) t 
Instance details

Defined in Diagrams.Coordinates.Polar

type BaseSpace Polar 
Instance details

Defined in Plots.Axis

type BaseSpace Polar = V2
type Rep Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

type Rep Polar = E Polar
type Unwrapped (Polar a) 
Instance details

Defined in Diagrams.Coordinates.Polar

type Unwrapped (Polar a) = V2 a
type Rep1 Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

type Rep1 Polar = D1 (MetaData "Polar" "Diagrams.Coordinates.Polar" "plots-0.1.0.2-J97qS1TiFW2BE1BUjrVrVc" True) (C1 (MetaCons "Polar" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec1 V2)))
type MainOpts (Axis b Polar n) 
Instance details

Defined in Plots.Axis.Render

type MainOpts (Axis b Polar n) = MainOpts (QDiagram b V2 n Any)

class HasR (t :: * -> *) where #

Minimal complete definition

_r

Methods

_r :: RealFloat n => Lens' (t n) n #

Instances
HasR V2 
Instance details

Defined in Diagrams.TwoD.Types

Methods

_r :: RealFloat n => Lens' (V2 n) n #

HasR Polar 
Instance details

Defined in Diagrams.Coordinates.Polar

Methods

_r :: RealFloat n => Lens' (Polar n) n #

HasR v => HasR (Point v) 
Instance details

Defined in Diagrams.TwoD.Types

Methods

_r :: RealFloat n => Lens' (Point v n) n #